Admin – Custom Post Type in WooCommerce menu – how to control menu order
menu_position is not used when you set show_in_menu to a submenu. to put your menu in last position there is 2 solutions. The first is to change the menu construction priority like this : add_action(“admin_menu”, function () { remove_action(‘admin_menu’, ‘_add_post_type_submenus’); add_action( ‘admin_menu’, ‘_add_post_type_submenus’, 200); // 200 to set it after the last element of WooCommerce … Read more