MultiVendor - How to remove in frontend marked "Sold By xxx"

If you want to remove in frontend marked "Sold By xxx" you could use this code in your functions.php

if( function_exists( 'YITH_Vendors' ) && ! function_exists( 'yith_wcmv_remove_sold_by_information' )){
add_action( 'init', 'yith_wcmv_remove_sold_by_information', 20 );
function yith_wcmv_remove_sold_by_information(){
$frontend = YITH_Vendors()->frontend;
remove_filter( 'woocommerce_cart_item_name', array( $frontend, 'add_sold_by_vendor' ), 10, 3 );
remove_filter( 'woocommerce_order_item_name', array( $frontend, 'add_sold_by_vendor' ), 10, 3 );
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk