wpp-generate
v1.1.0
Published
Generate a WordPress plugin from a boilerplate.
Downloads
2
Maintainers
Readme
wpp-generate
Generate a WordPress plugin from a boilerplate. The generated plugin includes simple files just for my personal use for now.
Install
Install the package globally:
npm install -g wpp-generate
Or use it with npx
:
npx wpp-generate
Usage
Run the command:
wpp-generate
And fill the form:
- Plugin Name (Required)
- Plugin Slug (Required)
- Plugin URI
- Description
- Version
- Author
- Author URI
When you run the command, it will clone the roelmagdaleno/wp-plugin-boilerplate repository to the current path you're in.
Plugin Structure
The generated project will contain the next structure:
plugin-name/
├─ includes/
│ ├─ constants.php
│ ├─ required-files.php
│ ├─ class-plugin-name.php
├─ plugin-name.php