Wordpress Plugin Skeleton
Use this skelton to kickstart your Wordpress Plugin development.
It has a built-in Templating Engine (Twig) and a composer.json file to add some extra packages.
You need Composer to use this skeleton:
Switch to your Wordpress Plugin folder in /wp-content/plugins/
Use your installed composer to checkout this skeleton
php composer.phar create-project mmdc/wp-plugin-skeleton [my-plugin-name]
or using system-wide installed composer
composer create-project mmdc/wp-plugin-skeleton [my-plugin-name]
Activate the plugin in backend
Use shortcodes (e.g. [mmdc_index_index]) in frontend to get some output
Feel free to change the following:
- Name of the main plugin file:
- My default namespace
MMDC. You could just do a Find&Replace on MMDC.
post-create-project-cmdevent to rename namespace on installation