x-ob6g
Last Updated: February 25, 2016
·
570
· micjamking
Mike headshot

Change 'Howdy' greeting in WordPress

Although there are plenty of plugins for changing the howdy greeting in WordPress, here is a simple solution that you can add to your functions.php to change the greeting as well.

/**
 * Custom Greeting
 */
function custom_howdy( $text ) {

    $greeting = 'Aloha';

    if ( is_admin() ) {
        $text = str_replace( 'Howdy', $greeting, $text );
    }

    return $text;
}

add_filter( 'gettext', 'custom_howdy' );

Just change the value of the $greeting variable to whatever you want and you should be good to go.

Say Thanks
Respond