如果想修改WordPress官方的中文语言包可以参考:
Loco Translate插件,支持直接在WordPress后台翻译主题、插件、甚至Wordpress程序本身,适合制作修...
16184
汇集一些WP版本翻译不完整的问题。
WP6.3外观下的背景(Background)菜单文字,后台多次更新语言包,但一直未翻译,估计只能等下一个版本了,如果看着异族语言不舒服,可以自己动手修改一下。
位置在wp-admin\menu.php238行:
$submenu['themes.php'][20] = array( _x( 'Background', 'custom background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' );
修改array( _x(后面的Background
或直接移除这个菜单项,可以在“自定义”菜单中使用该功能,没有影响。
将代码添加到主题functions.php中:
function remove_custom_background_menu() {
global $submenu;
unset( $submenu['themes.php'][20] );
}
add_action( 'admin_menu', 'remove_custom_background_menu', 999 );待续


