[wp-trac] [WordPress Trac] #46659: Suggestion: add action hook before admin menu nav in the sidebar
WordPress Trac
noreply at wordpress.org
Tue Mar 26 16:02:53 UTC 2019
#46659: Suggestion: add action hook before admin menu nav in the sidebar
----------------------------+-----------------------------
Reporter: umagrama | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
To increase customizability in the admin sidebar menu, I added an action
hook in the file **wp-admin/menu-header.php**. I needed this to implement
a menu with the company logo, user avatar , username, some_meta_data,
logout link. I removed the top horizontal menu for some user roles. It
looks nice and this was the only way I managed to do it without using
javascript. Using CSS I change the company logo to a small version of it
when the menu is minimized.
**wp-admin/menu-header.php**
{{{
...
<div id="adminmenuwrap">
<?php do_action('do_custom_before_admin_menu');?>
<ul id="adminmenu">
...
}}}
First time creating a ticket here, sorry if something is wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46659>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list