Human Made Plugin Generator
Yeoman WordPress plugin generator based on Human Made's coding standards.
Check out an example of a generated plugin.
The following humans contributed to this awesome generator:
This is a fork of the WDS Plugin Generator.
The main difference between the HM and WDS generator is the structure of the generated plugins. The HM generator assumes plugins to be built on PHP7+ using namespaces throughout rather than singleton classes.
If you don't have Yeoman installed:
npm install -g yo
generator-hm-plugin from npm, run:
npm install -g generator-hm-plugin
cd to your WordPress plugins folder and:
You'll be prompted with steps for creating your plugin.
Once your nifty new plugin has been generated,
cd into your new plugin's
directory. While in the plugin directory, you can run additional commands
called sub-generators to automatically generate files to enhance your plugin.
yo hm-plugin:include <include-name>Basic Include
yo hm-plugin:cpt <cpt-name>Custom Post Type
yo hm-plugin:taxonomy <taxonomy-name>Taxonomy
yo hm-plugin:options <options-name>Option Page
yo hm-plugin:widget <widget-name>Widget
yo hm-plugin:endpoint <class-name>WP-API Endpoint