Opened 6 years ago
#46659 new enhancement
Suggestion: add action hook before admin menu nav in the sidebar
Reported by: | umagrama | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.