共計 584 個字符,預(yù)計需要花費 2 分鐘才能閱讀完成。
安裝 Atuo Tag Slug 后,中文標(biāo)簽的問題解決了,可是又出現(xiàn)新的問題,在后臺所有的頁面,
都提示:“Atuo Tag Slug: 必須使用 API Key 來激活英語翻譯功能,可以到 這里 獲取并 修復(fù).》”
看著太糾結(jié)了,所以就想招去掉它,步驟如下:
打開插件文件 auto-tag-slug.php,刪除第 140 行的如下代碼:
- add_action(‘admin_notices’, ‘ats_api_warning’);
再打開插件文件 admin_page.php,刪除第 89-96 行的如下代碼:
function ats_api_warning() {
global $ats_options;
if (empty($ats_options[‘bing_key’]) ) {
echo“
<div class=’updated fade’><p> Atuo Tag Slug:”.__(‘You need an API key to activate English translator.
Get one <a href=”http://www.bing.com/developers/appids.aspx”target=_blank>here</a> and
<a href=”options-general.php?page=auto-tag-slug”>fix it</a>.’,‘a(chǎn)uto-tag-slug’) .”</p></div>
“;
}
}