Make WordPress Core

Opened 11 years ago

Last modified 5 months 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 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)

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

Download all attachments as: .zip

Change History (9)

@cfoellmann
11 years ago

add_menu_separator function

#1 @cfoellmann
11 years ago

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

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

http://grab.by/CFBI

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

#5 @helen
11 years ago

  • Version trunk deleted

#6 @ocean90
10 years ago

#32823 was marked as a duplicate.

#7 @swissspidy
9 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.

#8 @jorbin
5 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.