0

I need to change Label text in registration form, especially "Email" label. I want to add asterisk or just add text "required field" How can I do that? Please advice...

| improve this question | | | | |
0

If you are using default WordPress registration form. But there are no "Email" field. OK but you can try below code.

if ($pagenow=='wp-login.php') { 
   add_filter( 'gettext', 'user_email_login_text', 20, 3 );
      function user_email_login_text( $translated_text, $text, $domain ){
          if ($translated_text == 'Email') {
               $translated_text = 'Email required field';
          }

          return $translated_text;
     }
} 
| improve this answer | | | | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.