• Resolved Anatolia Creative

    (@alicanyildizcom)


    I don’t want “Dokan” to add a new user role. I want members with pre-existing user roles to be able to use “Dokan”. how can I do? who can help me?

    I used role management plugins. but we can’t use “dokan”. I make the user role “vendor”. The bug has improved. Dokan’s default role is “Vendor / Seller”. I don’t want the role of Vendor to be created. I want to use “Dokan” with a pre-existing “sample_role” user role.

Viewing 1 replies (of 1 total)
  • Plugin Support Nazmul Hassan

    (@nazmulhassann20)

    Hello @alicanyildizcom,

    I am sorry for being late. If you want to use any third-party plugin to create the vendor role or a custom role with vendor capabilities then you have to make sure that you have added below capabilities for the role to provide access on Vendor operations –

     add_role( 'seller', __( 'Vendor', 'dokan-lite' ), array(
                'read'                      => true,
                'publish_posts'             => true,
                'edit_posts'                => true,
                'delete_published_posts'    => true,
                'edit_published_posts'      => true,
                'delete_posts'              => true,
                'manage_categories'         => true,
                'moderate_comments'         => true,
                'unfiltered_html'           => true,
                'upload_files'              => true,
                'edit_shop_orders'          => true,
                'edit_product'              => true,
                'read_product'              => true,
                'delete_product'            => true,
                'edit_products'             => true,
                'publish_products'          => true,
                'read_private_products'     => true,
                'delete_products'           => true,
                'delete_products'           => true,
                'delete_private_products'   => true,
                'delete_published_products' => true,
                'delete_published_products' => true,
                'edit_private_products'     => true,
                'edit_published_products'   => true,
                'manage_product_terms'      => true,
                'delete_product_terms'      => true,
                'assign_product_terms'      => true,
                'dokandar'                  => true,
            ) );

    You can check details about the role function in dokan-lite/classes/installer.php and the function is – function user_roles()

    I hope this will help you.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Dokan User Role Capability – help’ is closed to new replies.