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

Use Product Attribute in conditional tag

You should be able to wrap the “return with price” section if the $term variable matches a certain value. I’m unsure what $term actually contains, but this should work. If not, you can modify the values in the if statements. //Add prices to variations add_filter( ‘woocommerce_variation_option_name’, ‘display_price_in_variation_option_name’ ); function display_price_in_variation_option_name( $term ) { global $wpdb, … Read more

WooCommerce Stucked (?) – Edit dimensions

It’s supposed to be like that. 3.3 changes the way images work. Instead of setting a width and height you set a width and aspect ratio: https://woocommerce.wordpress.com/2017/12/11/wc-3-3-image-size-improvements/ So if you want square cropped images that are 300 pixels wide (for example), set the width to 300 and cropping to 1:1.