Support » Fixing WordPress » How to change the text labels in user/pass box on login page

Viewing 3 replies - 1 through 3 (of 3 total)
  • Any tips?

    This was possible using a gettext filter in WordPress 4.4 and previous. Not sure how to do it in new version though. Previous filter does not seem to get called.

    Layson

    (@glennlaysonjr)

    If you use the following code in your themes functions.php and replace the “Your Custom Text” with whatever you are wanting.

    add_filter(  'gettext',  'register_text'  );
    add_filter(  'ngettext',  'register_text'  );
    function register_text( $translated ) {
         $translated = str_ireplace(  'Username or Email Address',  'Your Custom Text',  $translated );
         return $translated;
    }
    • This reply was modified 2 years, 9 months ago by Layson.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change the text labels in user/pass box on login page’ is closed to new replies.