A modern WordPress plugin scaffold for Weave Digital Studio and HumanKind. Built with namespaced PHP functions, React settings, Gutenberg blocks, and the WordPress Interactivity API.
This is a living reference scaffold — real, functional, testable code. Clone it, point an AI agent at CLAUDE.md, and say "rename this to X and adapt it for Y".
- WordPress 6.6+
- PHP 8.1+
- Node.js 20+ (for building)
# Clone the scaffold
git clone https://github.com/weavedigitalstudio/weave-starter-plugin.git my-plugin
cd my-plugin
# Install dependencies and build
npm install && npm run build
# Symlink into WordPress Studio for testing
ln -s ~/Projects/my-plugin ~/Studio/my-site/wp-content/plugins/my-plugin- Custom Post Type with meta fields and taxonomies
- Gutenberg block for meta field entry in the editor
- React settings page using
@wordpress/components - GitHub updater for self-hosted automatic updates
- GitHub Actions release workflow
- DataViews admin screen —
@wordpress/dataviewspowered item browser - Frontend display block — Interactivity API with category filtering
- Shortcodes — legacy shortcode output
- Admin columns — custom sortable columns on the CPT list table
npm run start # Watch all source files
npm run build # Production build
npm run lint # Lint JS and CSS- Bump the version in
weave-starter-plugin.phpandpackage.json - Update
CHANGELOG.md - Commit and push to
main - Tag and push:
git tag -a v1.x.x -m "Version 1.x.x" && git push origin main --tags - GitHub Actions builds and publishes the release automatically
See CLAUDE.md for the complete find-and-replace table and architecture guide.
GPL-2.0-or-later