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
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.
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.
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?