How j7-dev/wp-power-course works
Main System Components
a. Frontend Layer:
• Course viewing interface (inc/templates/pages/classroom)
• Product/Course catalog (inc/templates/pages/course-product)
• My Account section (inc/templates/pages/my-account)
• Video player components (multiple providers supported)
b. Admin Layer:
• Course management
• Product management
• Email system
• Media library (Bunny integration)
• Settings and configuration
• Student management
c. Core Components:
• API handlers (inc/classes/Api)
• Resource managers (inc/classes/Resources)
• Template system (inc/classes/Templates)
• Email system (inc/classes/PowerEmail)
Key Architectural Elements
a. Data Flow:
User Interface (React/TypeScript) ↔ WordPress REST API ↔ Core Plugin Logic ↔ Database
b. Integration Points:
• WooCommerce integration for e-commerce
• Bunny.net for video hosting
• WordPress core integration
• External video providers (YouTube, Vimeo)
[Frontend Layer]
• ↑↓
[WordPress REST API Layer]
• ↑↓
[Core Plugin Logic]
• ↑↓
[Database Layer]
[External Services]
• Bunny.net
• WooCommerce
• Video Providers
Important Relationships to Highlight
• Course-Product relationship
• User-Course access control
• Email trigger system
• Media management flow
• Chapter/Content organization
Implementation Details
• Component name
• Key responsibilities
• Integration points
• Data flow direction indicators
Example Component Structure:
┌─────────────────────┐
• Course Management │
• ┤
• Content org │
• Access control │
• Progress tracking│
• ┬────────────┘
• ↓
• [Database Layer]