Setup Debug Settings
Setup
Back to: Build a Block from other Blocks
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' );
Join The Community
Chat with other people taking this course, ask questions, and connect with other WordPress developers
Join on Discord
Leave a Reply
You must be logged in to post a comment.