Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#19490 closed feature request (wontfix)

Filter for 'Howdy' text in admin bar

Reported by: griffinjt's profile griffinjt Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.3
Component: Toolbar Keywords: has-patch needs-testing
Focuses: Cc:

Description

As I pointed out here (with Nacin's options here), I still think there should be a filter for 'Howdy' specifically, so instead of having to go around your elbow to get to your arm, you can filter it directly (which is much simpler for theme/plugin authors).

Just my two cents. :-)

Attachments (1)

filter-howdy.diff (537 bytes) - added by griffinjt 13 years ago.
Apply targeted filter to 'Howdy' text

Download all attachments as: .zip

Change History (3)

@griffinjt
13 years ago

Apply targeted filter to 'Howdy' text

#1 @dimadin
13 years ago

There is already 'gettext' filter where you can globally replace "Howdy" in all WordPress versions.

Example:

function md_replace_howdy( $text ) {
	$text = str_replace( 'Howdy', 'Hi', $text );

	return $text;
}
add_filter( 'gettext', 'md_replace_howdy' );

Or a little different code on wpmu.org.

#2 @jane
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No need to go around your elbow, just bend it and your arm's right there. :)

The gettext filter is already there, as noted. "Howdy" is part of WordPress's DNA -- we won't go out of the way to provide additional methods of removing it.

Note: See TracTickets for help on using tickets.