Hi. How can we help?

If you want to remove "Register as a vendor" in my account

If you want to remove "Register as a vendor" in my account.

In practice you do not see checkboxes and you want fields to register as a vendor are always visible. Basically you want to force anyone to register as a vendor, below you can find the code for it.

Please put this code in the functions.php of your theme:

if( function_exists( 'YITH_Vendors' ) ){
add_action( 'wp_enqueue_scripts', 'yith_wcmv_force_customer_to_vendor', 15 );
function yith_wcmv_force_customer_to_vendor(){
$script = "
var vendor_register = jQuery('#vendor-register');
vendor_register.attr( 'checked', 'checked' );
vendor_register.off('click').on('click', function(){
$(this).attr( 'checked', 'checked' );
wc_enqueue_js( $script );
Was this article helpful?
0 out of 2 found this helpful

Back to Help Center >