ControlledChaos of Controlled Chaos Design
7/20/2017 - 4:34 PM

Change the "Howdy" greeting in the WordPress admin bar.

Change the "Howdy" greeting in the WordPress admin bar.

<?php

function ccd_change_howdy( $translated, $text, $domain ) {

  if ( ! is_admin() || 'default' != $domain )
      return $translated;
  
  // Replace "Howdy" with "Welcome"
  if ( false !== strpos( $translated, 'Howdy' ) )
      return str_replace( 'Howdy', 'Welcome', $translated );

  return $translated;
}
add_filter( 'gettext', 'ccd_change_howdy', 10, 3 );

?>

Change Howdy Greeting

WordPress Snippet