Change WordPress's login label, "Username"

On the default WordPress login page, how do you change the label, "Username", to something else?


I think this is a better alternative to the previous answer.

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

Simple Solution

add_filter(  'gettext',  'register_text'  );
function register_text( $translating ) {
    $translated = str_ireplace(  'Username or Email Address',  'Your Custom Text',  $translating );
    return $translated;

Need Your Help

What is the best way to manage configuration data

java configuration-management modularity

I am working on a product suite which has 4 products. Right now, all of the configuration data is either in the XML or properties files.This approach is not maintainable as we have to manage differ...

Mac OS App wont run

compiler-construction loading

Hello i'm trying to build a simple web browser and when i try to run the program inside the xcode builder it says build suceded and then throughs a error and stop loading