• Resolved irishetcher

    (@irishetcher)


    Hi,

    I have a function that allows me, to some degree, to rearrange items the backend menu in WordPress:

    /* Place Favourite post types ? pages ??Divi ? Toolset up higher in the WordPress backend menu. */
    
    function custom_menu_order() {
      return array( 'index.php', 'edit.php?post_type=page', 'edit.php?post_type=product', 'edit.php', 'separator1', 'et_divi_options', 'toolset-dashboard', 'upload.php',  'plugins.php', 'separator2' );
    }
    
    add_filter( 'custom_menu_order', '__return_true' );
    add_filter( 'menu_order', 'custom_menu_order' );

    The last piece of the jigsaw is to move the WooCommerce menu item as well but, I can’t determine the slug for this. Iv’e tried using variations of the path that is shown when you over over the WooCommecrce link but none of these work.

    /wp-admin/admin.php?page=wc-admin

    Anybody know what the correct slug/link should be?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move WooCommerce menu item’ is closed to new replies.