eugenealegiojo/wp-plugin-generator

A WordPress plugin boilerplate generator.

v0.1.0 2024-04-12 08:44 UTC

This package is auto-updated.

Last update: 2025-06-12 13:48:30 UTC


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.