An opinionated starter template for crafting WordPress block plugins.
- Tailwind v4 scoped separately to editor and frontend styles
- TypeScript
- Biomejs for linting and formatting
- Playwright for end-to-end testing using WP Playground
- Runs the Plugin Check from WordPress on main and release
- Auto deployment to WordPress.org SVN on release (via 10up Action)
- Click "Use this template" at the top+right of the repo
- Search/replace
kevinbatdorfwith your namespace/username - Search/replace
block-starterwith your plugin slug. - Update
block-starter.phpto match your new plugin slug - Run
composer installto install PHP dev dependencies (sometimes needed for autocomplete in IDEs) - Run
npm installto install dependencies - Run
npm run startto start the dev server
- If your plugin slug doesn't match your GitHub repo name, you'll need to update the
runPHPstep in thetests/playwright.ymlworkflow to require the correct file.