Skip to content

Instantly share code, notes, and snippets.

@markjaquith
Created December 25, 2011 04:16
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markjaquith/1518715 to your computer and use it in GitHub Desktop.
Save markjaquith/1518715 to your computer and use it in GitHub Desktop.
Removes "Howdy" from the WordPress 3.3 toolbar
<?php
/*
Plugin Name: No Howdy
Description: Removes "Howdy, " from the toolbar
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
class CWS_No_Howdy {
const howdy = 'Howdy, %1$s';
const no_howdy = '%s';
public function __construct() {
add_filter( 'gettext', array( $this, 'kill_howdy' ) );
}
public function kill_howdy( $text ) {
if ( self::howdy === $text )
return self::no_howdy;
return $text;
}
}
new CWS_No_Howdy;
@TobiasBg
Copy link

How about an additional

remove_action( 'admin_bar_menu', array( $this, 'hook_out' ), 9999 );

before line 32?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment