Hide Submit Listing Button for Vendors After the First Listing is Submitted

Hi team,

I would like to enable a single listing per vendor. Each vendor can set their hourly consultation rate and that’s it. This means that, once vendors have created their first (and thus last) listing, the button in the top right should be hidden. Users only become vendors once their listing is approved. Is this possible to implement?

  • restrict listing to 1 per vendor
  • hide the Submit a listing button for logged in vendors

Thank you

Hi,

Please use this code snippet to hide the submit listing button for vendors, changing ! current_user_can( 'edit_posts' ) to current_user_can( 'edit_posts' ). This will hide the button once the listing is approved.

Alternatively, if vendors don’t need to submit listings and you only require one listing submission to change their role from user to vendor, you can enable direct vendor registration [How to add a vendor registration form - HivePress Help Center] and turn off the “Allow submitting new listings” feature in WP Dashboard > HivePress > Settings > Listings > Submission.

Hope this helps

Thank you for your reply.

In general, is it possible to restrict access to certain pages for logged in vendors? i.e., once a vendors is signed up as a vendor, i want them to have a different nav bar, and a restrict access to the “why become a vendor” page.

Thank you!

Furthermore, if I allow the direct registration for vendors, it seems I can then no longer approve the vendor. I like the process where listings need to be manually approved before they are published.

Is it possible to have a similar logic for vendors who register through /register-vendor instead of submitting a listing?

This would require customization.

If you have coding experience, you can try customizing it yourself using the collection of code snippets found here: Search · user:hivepress · GitHub as well as other developer resources: Getting started | Developer Docs.

Alternatively, you may want to consider reaching out to a freelancer: Customize your website | HivePress.

Currently, there is no option to verify vendors, but we are planning to implement this feature in future updates.