WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#19490 closed feature request (wontfix)

Filter for 'Howdy' text in admin bar

Reported by: 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 2 years ago.
Apply targeted filter to 'Howdy' text

Download all attachments as: .zip

Change History (3)

griffinjt2 years ago

Apply targeted filter to 'Howdy' text

comment:1 dimadin2 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.

comment:2 jane2 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.