在functions.php中添加这段代码,就可以在边栏菜单中更换单词,比如post换成article。你也可以换成自己喜欢的词。
add_filter( 'gettext', 'change_post_to_article' );
add_filter( 'ngettext', 'change_post_to_article' );
function change_post_to_article( $translated ) {
$translated = str_ireplace( 'Post', 'Article', $translated );
return $translated;
}
分类:新闻资讯