This is opinionated template for new WordPress plugin.
- Automatic versioning. Every commit will bump next minor version number.
- Automatic creation of plugin .zip file. Zip files are placed in bulid/ folder after each commit.
- Plugin class with some useful methods
- Simple Template class
Download this project (change MY-PLUGIN-NAME to the name of your plugin)
mkdir MY-PLUGIN-NAME
cd MY-PLUGIN-NAME
git clone git@github.com:vlazic/wp-plugin-base.git .
./init.sh
wp plugin activate MY-PLUGIN-NAME