0

How can I move Customize menu item from Appearance menu to first level menu items in WordPress dashboard so it would be below Appareance menu? Also how can I change the name Customize?

0

The function below should help you. It removes the default menu item from the "Apperance" menu item and a new menu item to the Dashboard.

add_action( 'admin_menu', 'fb_customize_admin_menu_hide', 999 );
function fb_customize_admin_menu_hide(){
    global $submenu;

    // Remove Appearance - Customize Menu
    unset( $submenu[ 'themes.php' ][ 6 ] );

    // Create URL.
    $customize_url = add_query_arg(
        'return',
        urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
        'customize.php'
    );
    // Add sub menu page to the Dashboard menu.
    add_dashboard_page(
        __( 'Customize' ),
        __( 'Customize' ),
        'customize',
        esc_url( $customize_url ),
        ''
    );
}

You should copy this in a small plugin and activate in your installation.

1
  • That's it! Much appreciated. I only changed function add_dashboard_page to add_menu_page because I wanted it to display as first level not submenu ;) – Cookie_Pa Nov 16 '15 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.