Home › Support Forum › General Marketplace Discussion (User’s interaction forum) › Giving Preferred Vendors Access to Publish Without Approval
Giving Preferred Vendors Access to Publish Without Approval Open
CurtJParticipantMarch 14, 2019 at 9:12 pmPost count: 10
Hello. I’d like to give only certain vendors the ability to publish their products without admin approval – the vendors that have a good track record. I know that with another multi-vendor system you can make it so everything is by admin approval globally, but then you can go into a vendor’s individual account and give them the ability to post without approval. Do you have a way to do that?
NerdySupportExpert MoumitaKeymasterMarch 15, 2019 at 6:08 amPost count: 3438
Hi @curtj, thanks for the query.
Our plugin WC Marketplace assigns the capability to publish the product to all the vendor.
However, you can do custom code and provide the user_id (of the vendor, who has a good track), the capability to publish the product. If you want, we can help you out with the hook/filter.
Alternatively, you may use WCMp Vendor Membership plugin (https://wc-marketplace.com/product/wcmp-vendor-membership/) and set two plans. Provide publish product capability to one plan only (see the screenshot – https://prnt.sc/my8fk4) and share the plan page with the desired vendor manually, so they can enroll under this.
Let us know if you have any further query.
CurtJParticipantMarch 15, 2019 at 12:41 pmPost count: 10
It would be great to see this option in a future update like other multi-vendor systems allow.
The membership plug-in seems like a convoluted way to do this. However, I do appreciate you giving my a few options.
Yes, I would like help with the hook/filter option, please.
CurtJParticipantMarch 18, 2019 at 8:14 pmPost count: 10
I have two open support tickets. This one is 3 days old. The main reason I went with WC Marketplace was because I wasn’t happy with the support from one of the other multi-vendor plug-ins. I don’t want to leave a negative review for your support. I’d much rather leave a positive review. Please answer my support tickets. You might even consider charging a few dollars for priority support. I’d be willing to purchase that option.
NerdySupportExpert MoumitaKeymasterMarch 19, 2019 at 4:14 amPost count: 3438
Sorry for the delayed reply due to long weekend.
You just need to add the capability to the users whom you want to allow to publish post without admin approval.
$user_id = INT_USER_ID; // ID of the user whom you want to allow
$user = new WP_User( $user_id );
$user->add_cap( ‘publish_products’ );
Further reference about the add_cap function is here – https://developer.wordpress.org/reference/classes/wp_role/add_cap/
Kindly let us know if you need any further clarification.
Please LOGIN to reply to this topic