Viewing 1 replies (of 1 total)
  • Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hi Elvis,

    You can add the following code to your functions.php file to do that:

    function login_function() {
        add_filter( 'gettext', 'username_change', 20, 3 );
        function username_change( $translated_text, $text, $domain ) {
            if ($text === 'Username')  {
                $translated_text = 'Thy Username';
            }
            return $translated_text;
        }
    }
    add_action( 'login_head', 'login_function' );

    Hope that works. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Username or Email Text’ is closed to new replies.