參考資料:https://www.webhostinghero.com/manually-disable-wordpress-plugins/
今天要停用外掛時忽然發現錯誤訊息,造成外掛無法自動關閉,上網查了一下主要有兩種方法。
方法一、直接刪除資料夾
外掛程式位置都在放在wp-content/plugins,直接將要異動的外掛修改名稱或者刪除,例如今天要停用Language-Selector這個外掛,直接刪除,或者改名為Language-Selector_Backup
注意事項:當名稱改回時,無法重新啟動外掛
方法二、透過資料庫異動
SELECT * FROM wp_options WHERE option_name = 'active_plugins';
a:9:{
i:0;s:49:"auto-syntaxhighlighter/auto-syntaxhighlighter.php";
i:1;s:45:"ckeditor-for-wordpress/ckeditor_wordpress.php";
i:2;s:42:"google-publisher/GooglePublisherPlugin.php";
i:3;s:36:"google-sitemap-generator/sitemap.php";
i:4;s:53:"insert-from-photostation/insert-from-photostation.php";
i:5;s:19:"jetpack/jetpack.php";
i:6;s:39:"language-selector/language-selector.php";
i:7;s:35:"move-site-files/move-site-files.php";
i:8;s:71:"syntaxhighlighter-ckeditor-button/syntaxHighlighter-ckeditor-button.php";
}
a:9的表示共有9個外掛,i:0表示第一個外掛,i:1表示第二個外掛,先將字串備份後,將數字進行修改,今天示範把i:6;s:39: language-selector/language-selector.php";移除,以下是完成修改後的結果
a:8:{
i:0;s:49:"auto-syntaxhighlighter/auto-syntaxhighlighter.php";
i:1;s:45:"ckeditor-for-wordpress/ckeditor_wordpress.php";
i:2;s:42:"google-publisher/GooglePublisherPlugin.php";
i:3;s:36:"google-sitemap-generator/sitemap.php";
i:4;s:53:"insert-from-photostation/insert-from-photostation.php";
i:5;s:19:"jetpack/jetpack.php";
i:6;s:35:"move-site-files/move-site-files.php";
i:7;s:71:"syntaxhighlighter-ckeditor-button/syntaxHighlighter-ckeditor-button.php";
}
沒有留言:
張貼留言