Make WordPress Core

Opened 9 years ago

Last modified 7 years ago

#30527 new enhancement

function to add separator

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


added the function add_menu_separator( $position ).


add_action('admin_menu', 'separator');

function separator() {

Adds a separator after 'Appearance'. - Just an example.

Attachments (1)

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

Download all attachments as: .zip

Change History (8)

9 years ago

add_menu_separator function

#1 @cfoellmann
9 years ago

  • Keywords has-patch added
  • Severity changed from normal to minor

#2 @respectyoda
9 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 @cfoellmann
9 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
9 years ago

  • Version trunk deleted

#6 @ocean90
9 years ago

#32823 was marked as a duplicate.

#7 @swissspidy
7 years ago

  • Component changed from Plugins to Administration
  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to Future Release

Function needs some inline docs improvements.

Note: See TracTickets for help on using tickets.