您所指的文本位于此处:wp-admin/nav-menus.php
. 但我们不会直接编辑。我们将使用functions.php
为了方便在升级后保留更改。
在中使用以下代码functions.php
add_filter( \'gettext\', \'wps_translate_words_array\' );
add_filter( \'ngettext\', \'wps_translate_words_array\' );
function wps_translate_words_array( $translated ) {
$words = array(
// \'word to translate\' = > \'translation\'
\'Click the arrow on the right of the item to reveal additional configuration options.\' => \'The maximum top level pages is 6\',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}