forked from Create WordPress Plugin™
This skeleton repository provides a structured starting point for developers building WordPress plugins. It includes a base plugin file, autoloaded PHP classes, unit tests powered by PHPUnit, and front-end assets compiled via Webpack. Continuous Integration workflows are pre-configured to run tests and build assets, and they automatically create a *-built branch for releases.
Key features and benefits:
entries directory into the build folder. Entry points can include an index.php file for enqueueing scripts, and the create-entry and create-slotfill commands scaffold new entry points or slotfills.config directory, following a schema from the Mantle framework. This avoids writing repetitive PHP registration code.create-block command generates custom block assets in the blocks/ directory, including block registration and script creation. Blocks are enqueued automatically via the load_scripts() function.tests directory and run via composer test. JavaScript tests use Jest, and linting uses ESLint. The setup supports both unit and integration testing.No comments yet. Be the first to start the conversation!
The skeleton is designed for teams that need a consistent, maintainable plugin structure with modern tooling. It handles versioning, asset builds, and release automation so developers can focus on plugin logic.