How to Create a WordPress Plugin from Scratch
The community recommends using the official wp-scripts package for a zero-config build process when developing custom WordPress plugins.
Based on 5 community reports.
Linked sources: 5.
Known Issues
- Complex build processes
- Plugin review team delays
- Maintenance overhead for updates
Community Q&A
What is the best way to start building a WordPress plugin?
Use the official wp-scripts package, which provides a zero-config webpack build process for building, testing, and linting your code.
Do I need to configure webpack manually for WordPress plugins?
No, it is generally recommended to use wp-scripts to handle the build process automatically without manual configuration.
How do I get my plugin published on the WordPress repository?
You must submit your plugin to the official WordPress review team, which can be a rigorous process requiring adherence to coding standards.
Reddit Sources
- Wordpress Development Workflow (r/ProWordPress)
- Published my first plugin - What would you like to know? (r/ProWordPress)
- I built a WordPress plugin to auto-generate SEO-optimized WooCommerce product descriptions (REQUESTING FOR A FEW TESTERS) (r/woocommerce)
- A governed WordPress block system delivering unexpected highscore on PageSpeed without optimization plugins (r/ProWordPress)
- Barebones tutorial for creating custom blocks with a webpack build process? (r/ProWordPress)