Multivendor - How to change the title of the tab "Vendor" in the single product page, showing the name of vendor

To change the title of the tab "Vendor" in the single product page, showing the name of vendor please paste this code in functions.php of your theme:

 

if( function_exists('YITH_Vendors') ){
add_filter( 'woocommerce_product_tabs', 'yith_wcmv_product_tabs', 30 );
if( ! function_exists( 'yith_wcmv_product_tabs' ) ){
function yith_wcmv_product_tabs( $tabs ){
if( isset($tabs['yith_wc_vendor'] ) ){
global $product;
$vendor = yith_get_vendor( 'current', 'product' );
if( $vendor->is_valid() ){
$tabs['yith_wc_vendor']['title'] = $vendor->name;
}
}
return $tabs;
}
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk