admin管理员组文章数量:1327661
A recent update to one of the plugins I use broke my multisite blog and in the process of debugging it, all of the plugins got disabled. Now I have to try to figure out which plugins used to be enabled, but that's a big chore for various reasons.
I've probably got at least one backup since the last time I toggled plugin, but I don't know where WordPress stores plugin state information for a multisite blog.
I tried dumping the whole WordPress database to try to search for the plugin state settings, but the thing is too much of a monster to manually search through, especially since most search terms return too many results to be practical.
Does anybody know where WordPress stores the state of plugins? Does it store them in every sub-blog's settings or is there a master one? What about network-enabled plugins?
A recent update to one of the plugins I use broke my multisite blog and in the process of debugging it, all of the plugins got disabled. Now I have to try to figure out which plugins used to be enabled, but that's a big chore for various reasons.
I've probably got at least one backup since the last time I toggled plugin, but I don't know where WordPress stores plugin state information for a multisite blog.
I tried dumping the whole WordPress database to try to search for the plugin state settings, but the thing is too much of a monster to manually search through, especially since most search terms return too many results to be practical.
Does anybody know where WordPress stores the state of plugins? Does it store them in every sub-blog's settings or is there a master one? What about network-enabled plugins?
Share Improve this question asked Jul 23, 2020 at 2:32 SynetechSynetech 3211 gold badge4 silver badges17 bronze badges2 Answers
Reset to default 1I found it. It's in the active_sitewide_plugins
value of the wordpress_sitemeta
table.
You can use active_plugins
from the wordpress Options API if your site is not Multi-site wordpress site.
You can run it as:
add_action("plugins_loaded", function(){
$active_plugins = get_option("active_plugins", []);
echo "<pre>";
print_r( $active_plugins );
echo "</pre>";
}
and it will print out all active plugins on your site.
本文标签: databaseWhere does WordPress store plugin (enableddisabled) status for multisite
版权声明:本文标题:database - Where does WordPress store plugin (enableddisabled) status for multisite? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742230845a2437193.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论