Automatically approve sellers

This topic contains 2 reply and 2 voices, and was last updated by Gabriel 9 years, 3 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
December 30, 2014 at 6:43 am 33118
Gabriel Hi, I am using the Dokan plugin. Nizam was very helpful and gave me the code to make all my users sellers: "add_filter( 'woocommerce_new_customer_data', 'gabe_new_user_data' ); function gabe_new_user_data( $data ) { $data['role'] = 'seller'; return $data; }" However, I still have to approve the sellers in my dashboard. Is there a code where I can just automatically mark users as approved? I looked through the plugin code and think I found where the code for the approval page. Is there some way I can add some code to functions.php to override it so that all users are approved to sell? Or do I have to go into the code and comment out the code then add my own? By the way, wanted to thank Nizam and then rest of the team, you guys offer great support. Best, -Gabe
December 30, 2014 at 8:01 am 33120
Ryan Ryan

Hi Gabriel,

I am just a user here, not support. But, you can find this setting in the backend admin dashboard:

Dokan > Settings > Selling Options > New Seller Enable Selling

Check this to enable and all new users who register as a seller will be automatically approved to sell on your site.

Hope that helps 🙂

January 5, 2015 at 4:56 am 33384
Gabriel Gabriel

Found it!

Thanks so much, Ryan!

-Gabe

Viewing 2 Posts - 1 through 2 (of 2 total)