Home / Admin / Disable sold by link on checkout page
Duplicate Snippet

Embed Snippet on Your Site

Disable sold by link on checkout page

Code Preview
php
<?php
/**
 * Disable the sold by link on the checkout page
 */
add_filter('wcvendors_sold_by_link', 'wcv_disable_checkout_sold_by_link', 10, 2); 
function wcv_disable_checkout_sold_by_link( $sold_by, $vendor_id ){ 
	if ( is_checkout() ) {
		$sold_by = WCV_Vendors::get_vendor_sold_by( $vendor_id ); 
	}
	return $sold_by; 
}

Comments

Add a Comment