Easily generate WordPress themes, plugins, and more.
First, install Yeoman and generator-wp-suite using npm (we assume you have pre-installed node.js).
npm install -g yo generator-wp-suite
Then generate your new project:
yo wp-suite
yo wp-suite
Not yet implemented.
yo wp-suite:plugin
Generates a plugin based on the WordPress Plugin Boilerplate, with some slight modifications.
The human-readable name of the plugin, which is going to be displayed in the WordPress admin area. For example: Mycompany Foo Bar
. The plugin's slug, classnames, and filenames are generated from this, by slugifying the human-readable plugin name. Currently there's neither option nor real need to be able to input these separately, 99% of the time these are all a slugified version of the plugin name, and it should kept that way in order to maintain consistency.
Short description of your plugin, which appears in the admin area.
The website of your plugin, if any.
The plugin author's name.
The plugin author's email.
The plugin author's website.
Here the generator shows you a list of available features which you can choose to support in your plugin. These features currently include:
- Composer support (includes autoloader in your plugin, and generates
composer.json
with typewordpress-plugin
) - Public-facing/admin-facing functionality (e.g. option pages, page sections, other visual elements that appear on the frontend)
- Activation/deactivation hooks
MIT © wolfika