WordPress 通过数据库禁用插件更换主题
当我们的插件或者主题产生严重错误时,可能会导致整站崩溃,以至于无法进入后台。这时候往往只能通过修改数据库的方式禁用插件或者更换主题。
我们可以在 options 数据表中找到一下三个值,并对应修改
update_option('active_plugins', []);
update_option('stylesheet', '');
update_option('template', ''); 当我们的插件或者主题产生严重错误时,可能会导致整站崩溃,以至于无法进入后台。这时候往往只能通过修改数据库的方式禁用插件或者更换主题。
我们可以在 options 数据表中找到一下三个值,并对应修改
update_option('active_plugins', []);
update_option('stylesheet', '');
update_option('template', '');
撰写评论