In Dokan multivendor plugin a vendor can upload and sell product and customers will be able to purchase their product. Now, what will happen if the customer wants to be a vendor?
A customer can easily migrate his account to a vendor account by default in the Dokan Multivendor plugin. This is a great feature but not every marketplace owner wants their customer to be a vendor.
Remove the “Become a Vendor” button
It is really easy to remove the migration button from your customer my-account page. You need a child theme to make this happen. If you have a child theme then insert the below code on the child theme’s functions.php file –
remove_action( 'woocommerce_after_my_account', array( Dokan_Pro::init(), 'dokan_account_migration_button' ) );
See the full demonstration of this code in this video:
Subscribe my youtube channel to get more tutorial 🙂