• Resolved TIEro

    (@tiero)


    I’d like to move the Jetpack menu as part of a total reshuffle of the Dashboard I’m doing for a particular site setup. My function for the rest of the options is simple enough:

    function shuffle_menus($menu_ord) {
        if (!$menu_ord) return true;  
    
        return array(
    	'plugin_admin_page', // Plugin Admin
            'edit.php', // Posts
    	'users.php', // Users
            'index.php', // Dashboard
            'separator1', // First separator
            (list continues, chopped here for convenience)
        );
    }

    However, the Jetpack menu remains up near the top. How can I refer to it in the function so I can move it? I’ve tried ‘jetpack’ and ‘jetpack.php’ but neither works.

    Thanks!

    http://ww.wp.xz.cn/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    jetpack should work. Just make sure you hook shuffle_menus late enough, like so:

    add_filter( 'custom_menu_order', 'shuffle_menus' );
    add_filter( 'menu_order', 'custom_menu_order', 11 );
    Thread Starter TIEro

    (@tiero)

    As it happens, I figured out that this particular setup doesn’t need it switched on anyway… but the missing thing was the final parameter in the menu_order hook. I didn’t have anything there, so I assume it fired too quickly!

    Thanks very much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Moving the menu’ is closed to new replies.