Multi Vendor - How to show the check checked by default in the form of "Register as a vendor"?

The plugin by default does not this, but just add this code in your functions.php:

 

if( function_exists( 'YITH_Vendors' ) ){
add_action( 'wp_enqueue_scripts', 'yith_wcmv_register_as_a_vendor_form_customizzation', 15 );
function yith_wcmv_register_as_a_vendor_form_customizzation(){
if( is_account_page() && ! is_user_logged_in() ){
$script = "jQuery('#vendor-register').trigger('click');";
wp_add_inline_script( 'product-vendors', $script );
}
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk