4.8 KiB
MainWP Developer Guides
Welcome to the MainWP Developer Guides! This documentation is designed to help you create add-ons for the MainWP platform, whether you're building a standalone extension or integrating with a third-party service.
Understanding MainWP Add-on Types
MainWP uses specific terminology to distinguish between different types of add-ons:
- Add-on: The umbrella term for all MainWP plugins that extend functionality
- Extension: An add-on that works WITHOUT requiring a third-party plugin or API
- Integration: An add-on that works WITH a third-party plugin or API
Which Type Should You Build?
Use this decision tree to determine whether you should build an Extension or an Integration:
flowchart TD
A[Do you need to connect with\na third-party service or plugin?] -->|Yes| B[Integration]
A -->|No| C[Extension]
B --> D[Examples: WooCommerce Integration,\nGoogle Analytics Integration]
C --> E[Examples: Advanced Uptime Monitor,\nAdvanced Reports Extension]
Who These Guides Are For
These guides are intended for developers who want to:
- Create custom extensions for MainWP (standalone add-ons)
- Build integrations with third-party services or plugins
- Customize MainWP functionality for specific needs
- Understand the MainWP architecture and development patterns
Whether you're new to MainWP development or an experienced developer looking for specific information, you'll find resources tailored to your needs. We've optimized these guides for part-time developers who want to create MainWP add-ons efficiently.
Guide Categories
Getting Started
Essential information for beginning your MainWP development journey:
- Setting Up a Development Environment
- Creating a Basic Extension (standalone add-on)
- Creating a Basic Integration (third-party add-on)
- Understanding the MainWP Development Extension
- Add-on Development Lifecycle
Core Development Topics
Detailed guides for key development areas:
- Building Admin Interfaces
- Data Storage and Retrieval
- Using MainWP Actions & Filters
- Debugging Add-ons
- Packaging and Distribution
- Working with Third-Party APIs (for Integrations)
Best Practices
Recommendations for creating high-quality MainWP add-ons:
- Writing Clean & Maintainable Code
- Security Considerations
- Performance Optimization
- Documentation Standards
- API Integration Best Practices
Reference
Technical reference material:
- Common Hooks Reference
- Add-on API Reference
- MainWP Dashboard Integration Points
- Child Site Communication
- Third-Party API Integration Patterns
Additional Resources
- MainWP Dashboard API Documentation
- MainWP Child API Documentation
- MainWP Dashboard Hooks
- MainWP Child Hooks
- MainWP Development Extension on GitHub
- MainWP API Client PHP on GitHub
How to Use These Guides
Each guide is structured to provide information at different levels of detail:
- Quick Start sections provide essential information for experienced developers
- Detailed Explanations help new developers understand concepts thoroughly
- Code Examples demonstrate practical implementation with copy-paste snippets
- Reference Links connect to API documentation and source code
- Troubleshooting Tips help you overcome common challenges
We've designed these guides with part-time developers in mind. If you're creating a MainWP add-on as a side project, you'll find:
- Clear, concise guides that respect your time constraints
- Separate pathways for Extension and Integration development
- Ready-to-use code snippets that you can adapt for your needs
- Practical implementation guidance focused on results
- Common pitfalls and their solutions to avoid getting stuck
Use the navigation to find the specific information you need, or follow the guides sequentially for a comprehensive learning path.