Setup Debug Settings


If Your Plugin Does Not Activate…

Navigate to your plugin’s root directory, and create a new file called composer.json. Paste this JSON into that file:

    "name": "alex/beer-lister",
    "description": "Beer lister plugin",
    "type": "wordpress-plugin",
    "require": {
    "extra": {
        "installer-paths": {
            "vendor/{$vendor}/{$name}": ["type:wordpress-muplugin"]

Next, run composer require underpin/underpin

Open bootstrap.php and add this just under the if (defined ABSPATH) block:

	require_once( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );

Leave a Reply