eugenealegiojo / wp-plugin-generator
A WordPress plugin boilerplate generator.
v0.1.0
2024-04-12 08:44 UTC
Requires
- php: ^7.4 || ^8.0
README
A composer package that can generate basic WordPress plugin with PSR-4 autoloading.
Usage
-
Navigate to your project folder. For example: wp-content/plugins/my-new-plugin
-
Add or generate a composer.json file.
-
Run:
composer require eugenealegiojo/wp-plugin-generator
-
Add the following code to your composer.json file:
"scripts": { "post-install-cmd": "php vendor/eugenealegiojo/wp-plugin-generator/wp-plugin-generator.php" },
-
Run:
composer install
-
Follow the prompts in the terminal to add your plugin info, then activate your plugin in the WordPress admin.