WP Plugin Boilerplate
Generator with Namespaces

This is based on the fantastic generator by Devin Vinson at https://wppb.me/ which provides an easy way to generate a plugin boilerplate from Tom McFarlin’s WPPB Foundation Plugin at https://github.com/devinvinson/WordPress-Plugin-Boilerplate/.

My version is at RC1 level. It’s free to use but please be aware that I’ve had limited time to test. Any issues, please leave a comment below or raise an issue on the project’s github page: https://github.com/EdithAllison/wp-plugin-boilerplate-namespacing.

In my own version (fork) I’ve maded the following changes:

  • Added Namespacing.
  • Added Multisite support for Plugin Activation, Deactivation and Uninstall.
  • Removed the Loader class (discussed in PR#416) and Global Functions (discussed in PR#321).
  • Enqueued scripts and stylesheets with “last modified” timestamp instead of plugin version.
  • Fixed various minor issues discussed in https://github.com/DevinVinson/WordPress-Plugin-Boilerplate.

Generate Plugin Boilerplate

The plugin name

The plugin slug. All lower case. Use hyphens between words. No spaces. Eg "plugin-slug".

The full plugin URL eg https://example.com/plugin-name-uri/.

The namespace used by your plugin. For help see PHP Manual: Namespaces. Suggested format is YourName\Plugin. Use backward slashes. No trailing slash.

The author or company name.

The author or company email.

The full author URL eg https://example.com/.

Photo by Ian Schneider on Unsplash