📅  最后修改于: 2022-03-11 14:54:42.099000             🧑  作者: Mango
function translate_specific_text( $translated_text ) {
if ( $translated_text == 'Old Text' ) {
$translated_text = 'New Translation';
}
return $translated_text;
}
add_filter( 'gettext', 'translate_specific_text', 20 );