Home Forums Theme Support Dokan Automatically approve sellers

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Gabriel 4 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33118

    Gabriel
    Member
    Post count: 15

    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

    #33120

    Ryan
    Member
    Post count: 59

    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 ๐Ÿ™‚

    #33384

    Gabriel
    Member
    Post count: 15

    Found it!

    Thanks so much, Ryan!

    -Gabe

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Automatically approve sellers’ is closed to new replies.