• Resolved euniceha

    (@euniceha)


    Dear Support,

    Upon installation of Yith Multi-vendor free version together with the Proteo Theme, there is a duplication of the “Orders” menu item.
    I think one menu item is activated by woocommerce and the other one is activated by Multi-vendor plug in?

    I would like to hide one of the duplicated items please

    Kind regards
    Eunice

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    could you try to use this code in functions.php, please ?

    if( ! function_exists( 'yith_wpv_vendor_to_remove_menu_items' ) ) {
    	function yith_wpv_vendor_to_remove_menu_items( $to_remove ){
    		$to_remove[] = 'edit.php?post_type=shop_order';
    		return $to_remove;
    	}
    
    	add_filter( 'yith_wpv_vendor_to_remove_menu_items', 'yith_wpv_vendor_to_remove_menu_items', 99 );
    }

    Let us know if works.

    Thread Starter euniceha

    (@euniceha)

    Hi there,
    Thank you for the code, I added it to the end of the functions.php file in my child theme, but I still have 2 Orders menu items in the Vendor Dashboard ??

    • This reply was modified 4 years, 3 months ago by euniceha.
    • This reply was modified 4 years, 3 months ago by euniceha.
    Thread Starter euniceha

    (@euniceha)

    Hi there,
    Just checking that ‘yith_wpv_vendor_to_remove_menu_items’ is the correct name for the function as I am having the problem with the free version not the premium version. Let me know
    TIA
    xxx

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    yes, the hook name is yith_wpv_vendor_to_remove_menu_items.
    If you cannot see it, please try to update YITH WooCommerce Multi Vendor to the latest version (3.7.2).

    Please try this solution and let us know if everything works fine!

    Thread Starter euniceha

    (@euniceha)

    Thank you, I have updated to 3.7.2 and it solved the issue!
    Have a great day
    ??

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    you are welcome!

    If you like the plugin and our support, please, support us with a 5-star review. It takes just a minute.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multi-vendor Free Version – Duplicate Menu Items’ is closed to new replies.