You are a senior WordPress plugin developer and software architect. Build a production-ready WordPress plugin named "WebSpark Membership Manager". The plugin must be written using WordPress coding standards, OOP PHP, proper sanitization, nonces, prepared SQL statements, and secure development practices. IMPORTANT: * Do not use Gravity Forms, Contact Form 7, WPForms, WooCommerce, or any third-party form builder. * Build everything natively inside the plugin. * Use custom database tables instead of wp_posts and wp_postmeta. * Code must be modular and reusable. * Generate complete code files, not pseudo-code. * Whenever creating files, provide the exact file path and contents. * Follow a scalable plugin architecture. PLUGIN PURPOSE The plugin should automate membership registration and payment collection for associations, medical societies, NGOs, chambers of commerce, clubs, and professional organizations. FRONTEND FEATURES Create shortcode: [membership_form] This shortcode should display: 1. Membership Type Dropdown 2. Dynamic Fee Display 3. Applicant Details Form: * Full Name * Email * Mobile * Address * City * State * Pincode * Qualification * Designation * Organization/Hospital 4. Document Upload Fields 5. Submit & Pay Button PAYMENT FLOW 1. User fills form 2. User clicks Submit & Pay 3. Plugin creates Razorpay Order 4. Razorpay Checkout opens 5. Payment success is verified 6. Member record is created 7. Membership ID is generated 8. PDF receipt is generated 9. Confirmation email is sent RAZORPAY INTEGRATION Create settings page where admin can configure: * Razorpay Key ID * Razorpay Secret * Webhook Secret Implement: * Order Creation * Checkout Integration * Signature Verification * Webhook Processing DATABASE TABLES Create custom tables: wp_ws_members wp_ws_payments wp_ws_membership_types wp_ws_members columns: id member_id membership_type_id full_name email mobile address city state pincode qualification designation organization payment_status created_at wp_ws_payments columns: id member_id razorpay_order_id razorpay_payment_id amount currency status created_at wp_ws_membership_types columns: id title fee status MEMBERSHIP ID GENERATION Generate unique IDs such as: AORN-2025-0001 AORN-2025-0002 Make prefix configurable from settings. ADMIN FEATURES Create WordPress admin menus: Membership Manager ├── Dashboard ├── Members ├── Membership Types ├── Payments ├── Settings Members page: * Search * Filter * View details * Download receipt * Export CSV EMAIL SYSTEM Create editable templates for: * Membership Confirmation * Payment Success * Receipt Email PDF RECEIPT Generate PDF containing: * Organization Logo * Membership ID * Member Name * Membership Type * Transaction ID * Amount Paid * Payment Date PLUGIN SETTINGS Allow admin to configure: * Organization Name * Organization Logo * Membership Prefix * Email Sender Name * Email Sender Address * Razorpay Keys TECHNICAL REQUIREMENTS * PHP 8+ * WordPress 6+ * OOP architecture * Namespaces * Autoloading * AJAX handling * Security validation * Prepared SQL queries * Responsive frontend PLUGIN STRUCTURE membership-manager/ admin/ assets/ includes/ public/ templates/ Provide the complete folder structure first. Then generate the plugin module-by-module in the following order: 1. Folder structure 2. Database installer 3. Main plugin bootstrap 4. Admin menu system 5. Membership types module 6. Frontend form module 7. Razorpay integration 8. Member creation system 9. PDF system 10. Email system 11. CSV export system Do not skip any step. Wait for confirmation after completing each module before moving to the next.
Sign in to leave a comment
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No comments yet. Be the first!