Opened 11 years ago
Last modified 5 months ago
#30527 new enhancement
function to add separator
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | minor | Version: | |
| Component: | Administration | Keywords: | has-patch needs-refresh close |
| Focuses: | Cc: |
Description
added the function add_menu_separator( $position ).
Usage:
add_action('admin_menu', 'separator');
function separator() {
add_menu_separator(61);
}
Adds a separator after 'Appearance'. - Just an example.
Attachments (1)
Change History (9)
#2
@
11 years ago
Adding menu separators, just not after Appearance, in the admin area is really up to the user. The user can just add this function to their functions.php, provided they are working with a child theme. Here's a concrete example of how someone can do this in the form of a screenshot.
#3
@
11 years ago
Your comment is not really related to my core patch. The function complements the set of functions allowing developer to manipulate the admin_menu.
Your code just adds some css colors. It doesn't allow for adding new separators into the $menu object.
Note: See
TracTickets for help on using
tickets.
add_menu_separator function