Skip to content

@markjaquith /no-howdy.php
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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

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
Something went wrong with that request. Please try again.