How to replace Howdy message in WordPress

May 25, 2019 | WooCommerce Tips | 0 comments

I’m guessing someone in Texas had something to do with the word “Howdy” being the welcome prefix in WordPress. It’s easy enough to change.

Add the function below to your child theme functions.php file.

/* replacing Howdy with Hello */
function howdy_message($translated_text, $text, $domain) {
$new_message = str_replace('Howdy', 'Hello', $text);
return $new_message;
}
add_filter('gettext', 'howdy_message', 10, 3);

0 Comments

Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.