Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
WordPress Expanded Admin Menus
* Plugin Name:
* Plugin URI:
* Description: Forces all admin menus to be expanded all the time
* Version: 0.0.1
* Author: Aaron D. Campbell
* Author URI:
function bd_expand_admin_menus() {
<script type="text/javascript">
jQuery('#adminmenu>li.wp-not-current-submenu').addClass('wp-has-current-submenu no-arrow').removeClass('wp-not-current-submenu');
add_action( 'adminmenu', 'bd_expand_admin_menus' );
function bd_expanded_admin_menus_head() {
<style type="text/css">
#adminmenu .wp-menu-arrow {
display: none;
add_action( 'admin_head', 'bd_expanded_admin_menus_head' );

This is now available on the WordPress repository:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.