A Generator For the WordPress Plugin Boilerplate

The WordPress Plugin Boilerplate is a popular tool for getting started with plugin development. Many top-notch WordPress developers have contributed to the boilerplate and the 2.6.0 release of the plugin provided a major update.

Using the plugin boilerplate as a starting place for plugin creation, a developer can quickly whip up a plugin in a matter of minutes. But what if you could do that even faster? Brad Vincent, author of the Themergency.com WordPress development blog, created a generator for the WordPress Plugin Boilerplate.

Using code from the grunt-wp-plugin by 10up, Vincent was able to set up a grunt-init template that generates a plugin from the boilerplate in about 30 seconds flat.

example-command-line

The WordPress Plugin Boilerplate Generator github repo provides instructions for installing grunt-init and using the command line to create your new plugin.

newly generated plugin

The generator includes all the relevant plugin author information. It also automatically renames all the files correctly and replaces all the necessary variables within the files. The end result is your newly generated plugin, customized and ready for you to start building.

There are 6 comments

Comments are closed.