[wp-trac] [WordPress Trac] #11332: Filters in the admin header
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 5 01:04:17 UTC 2009
#11332: Filters in the admin header
----------------------------+-----------------------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Administration | Version: 2.9
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
I know that we'll be looking into changes needed for the header for the MU
merge after 2.9 ships, however, I think it'd be very useful to add some
hooks to the header now..
Occasionally plugins have a need to add content to the headerbar, be it
adding an extra section beside whats there, or modifying it. I've seen
some plugins use Javascript to achieve this so far, and another using the
favourite actions filter as an action to output its content before the
dropdown was displayed..
I'd like to propose 2 new filters:
1. in_admin_header - allows adding extra content to the header
2. admin_user_info_links - Filters the Hello, user | Turbo | Logout links
The first would be useful for plugins to add a div or anything else to the
header section, The latter as being rather useful for user-related
plugins, giving them the ability to perform other tasks straight from
there (In my case, A link to jump to super-user mode)
Any feedback on them is appreciated, I was surprised to find that there
were no filters in this section of the document yet.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11332>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list