dev-master
9999999-devwp-plugin-maker CLI
The Requires
0.2.0
0.2.0.0wp-plugin-maker CLI
The Requires
0.1.0
0.1.0.0wp-plugin-maker CLI
The Requires
wp-plugin-maker CLI
CLI for WP Plugin Maker, (*1)
composer global require laegel/wp-plugin-maker-cli
Yup, it's a global package, so don't install it locally or don't expect it to work!, (*2)
Configure your ~/.composer/vendor/bin directory in your $PATH to be able to use it globally., (*3)
--name: dash-cased string, will be used to create the plugin folder name. The main namespace of the plugin will be transformed from dash-case to WordPress class naming convention (Underscore_Case), (*4)
This command will initialize a clean plugin. Must be used in your WordPress plugins directory., (*5)
--name: Underscore_Cased string, will be used as class name. "_Controller" will be appended to the name. [--folder]: The folder in which the controller will be saved. Can be "All" (default value), "Admin", "Front", "CLI" or "Rest". [--type]: The controller type. Can be "controller" (default value) or "custom_type"., (*6)
You can generate a new controller/custom type with this command. Must be used in your generated plugin directory., (*7)
To generate the actions/filters files punctually, use build. Must be used in your generated plugin directory., (*8)
To generate the actions/filters files and keep working on your plugin, use watch. Must be used in your generated plugin directory., (*9)
my-plugin |-- .gitignore |-- composer.json |-- plugin.php |-- require-admin.php (after build) |-- require-cli.php (after build) |-- require-front.php (after build) |-- require-rest.php (after build) |-- wpm-info.php |-- src | |-- Admin | | |-- (empty) | |-- All | | |-- (empty) | |-- CLI | | |-- (empty) | |-- Front | | |-- (empty) | |-- Rest | | |-- (empty) | |-- Plugin.php | vendor | |-- (packages)
What are the other files?, (*10)
wp-plugin-maker CLI
wp-plugin-maker CLI
wp-plugin-maker CLI