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

WooCommerce – Add Shipping class below each product in Shopping Cart page

You can try using a custom function hooked in woocommerce_cart_item_name filter hook, this way: add_filter( ‘woocommerce_cart_item_name’, ‘shipping_class_in_item_name’, 20, 3); function shipping_class_in_item_name( $item_name, $cart_item, $cart_item_key ) { // Only in cart page (remove the line below to allow the display in checkout too) if( ! ( is_cart() || is_checkout() ) ) return $item_name; $product = $cart_item[‘data’]; … Read more