实际上,我成功地改变了这一点:
function replace_registration_site_name_error( $translated_text, $text, $domain ) {
$default = \'Site names can only contain lowercase letters (a-z) and numbers.\';
if ( $translated_text == $default ) {
$translated_text = __( \'Test\', \'my_text_domain\' );
}
return $translated_text;
}
这很有效。但是,我无法使用此方法更改这两个字符串?
Site name must be at least %s character.
Site name must be at least %s characters.
有人知道为什么吗?