I'm using Composer to install plugins with the wpackagist repository. I've added all the relevant lines to my composer.json
file in my main wp/
directory.
The plugin installed as expected (it's this one if it makes any difference) to its own folder within wp/plugins/
.
The issue that I see now is that it doesn't show up in the plugins section of my WordPress dashboard, nor am I able to install it with wp plugin activate <name>
.
Is there something else that needs to be done with Composer or elsewhere in this process to allow the plugin to be able to be installed?
Here's my composer.json
:
{
"name": "johnpbloch/wordpress-core",
"description": "WordPress is web software you can use to create a beautiful website or blog.",
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org"
}
],
"keywords": [
"wordpress",
"blog",
"cms"
],
"type": "wordpress-core",
"homepage": "http://wordpress.org/",
"license": "GPL-2.0+",
"authors": [
{
"name": "WordPress Community",
"homepage": "http://wordpress.org/about/"
}
],
"support": {
"issues": "http://core.trac.wordpress.org/",
"forum": "http://wordpress.org/support/",
"wiki": "http://codex.wordpress.org/",
"irc": "irc://irc.freenode.net/wordpress",
"source": "http://core.trac.wordpress.org/browser"
},
"require": {
"php": ">=5.3.2",
"wpackagist-plugin/members": "2.0.2"
},
"provide": {
"wordpress/core-implementation": "4.8.2"
}
}
As I mentioned, the plugin is visible in my wp-plugins
folder, so it seems to have done everything correctly. I just can't manage to install it neither with WP-CLI nor within the WP Dashboard.
wp
-folder equivalent to thewp-content
-folder in which the plugins-folder usually resides? can you share your composer.json for more insight?wp
folder is the top-level folder containing all of the WordPress core files as well as folders likewp-content
.