admin管理员组文章数量:1325674
Do I need some extra WP-CLI bundle to activate mu-plugins via command line? I can't find anything about that in the docs. Are mu-plugins treated differently by WP-CLI?
I created /wp-content/mu-plugins/my-plugin.php
containing:
<?php
/*
Plugin Name: My Plugin
Description: Provide must-use code.
Version: 1.0
*/
When I do:
$ wp plugin list
I get:
+---------------+----------+--------+---------+ | name | status | update | version | +---------------+----------+--------+---------+ | akismet | inactive | none | 4.0.8 | | hello | active | none | 1.7 | | my-plugin | must-use | none | 1.0 | +---------------+----------+--------+---------+
But when I do:
$ wp plugin activate my-plugin
I get:
Warning: The 'my-plugin' plugin could not be found. Error: No plugins activated.
Do I need some extra WP-CLI bundle to activate mu-plugins via command line? I can't find anything about that in the docs. Are mu-plugins treated differently by WP-CLI?
I created /wp-content/mu-plugins/my-plugin.php
containing:
<?php
/*
Plugin Name: My Plugin
Description: Provide must-use code.
Version: 1.0
*/
When I do:
$ wp plugin list
I get:
+---------------+----------+--------+---------+ | name | status | update | version | +---------------+----------+--------+---------+ | akismet | inactive | none | 4.0.8 | | hello | active | none | 1.7 | | my-plugin | must-use | none | 1.0 | +---------------+----------+--------+---------+
But when I do:
$ wp plugin activate my-plugin
I get:
Share Improve this question edited Aug 27, 2020 at 14:22 norman.lol asked Sep 6, 2018 at 13:18 norman.lolnorman.lol 3,2313 gold badges29 silver badges35 bronze badgesWarning: The 'my-plugin' plugin could not be found. Error: No plugins activated.
1 Answer
Reset to default 6mu-plugins
don’t get activated. They’re activated just by being in that folder.
本文标签: wp cliHow do I activate an muplugin with WPCLI
版权声明:本文标题:wp cli - How do I activate an mu-plugin with WP-CLI? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742152960a2423536.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论