Make WordPress Core

Opened 12 years ago

Last modified 15 months ago

#30527 new enhancement

function to add separator

Reported by: cfoellmann Owned by:
Priority: normal Milestone: Future Release
Component: Administration Version:
Severity: minor Keywords: has-patch needs-refresh close
Cc: Focuses:

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)

add-menu-separator.diff​ (679 bytes ) - added by cfoellmann 12 years ago.
add_menu_separator function

Download all attachments as: .zip

Change History (9)

@cfoellmann
12 years ago

add_menu_separator function

#1 @cfoellmann
12 years ago

  • Keywords has-patch added
  • Severity normal → minor

#2 @respectyoda
12 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.

​http://grab.by/CFBI

#3 @cfoellmann
12 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.

#5 @helen
12 years ago

  • Version trunk

#6 @ocean90
11 years ago

#32823 was marked as a duplicate.

#7 @swissspidy
10 years ago

  • Component Plugins → Administration
  • Keywords needs-refresh added
  • Milestone Awaiting Review → Future Release

Function needs some inline docs improvements.

#8 @jorbin
15 months ago

  • Keywords close added

Based on the lack of traction and the fact that it's not being done in either a large redesign or as part of simplifying how core works, I think this should be closed as maybelater.

Note: See TracTickets for help on using tickets.