您可以尝试以下挂钩:
//
// remove label label[for=signupuser] and #signupuser on wp-signup.php with CSS
//
add_action(\'signup_header\',\'my_signup\');
function my_signup() {
echo "<style>label[for=signupuser],#signupuser{display:none !important;}</style>";
}
//
// edit text displayed on wp-signup.php
//
add_filter( \'gettext\', \'my_change_text\', 20 ,3);
function my_change_text( $translated_text, $text, $domain ) {
if ( $domain =="your_site_name") { // EDIT
if( trim($translated_text)=="Get your own %s account in seconds"){
$translated_text="Fields with an asterisk will be shown on your website for the world to see";
}
}
return $translated_text;
}
需要编辑值的位置
$domain =="your_site_name".
这将为您提供以下结果(请参见附图):