Join our new community forum for support & discussion

Join Now

Home Support Extensions Requests Requests Visible Only to User and Vendors

Requests Visible Only to User and Vendors

  • Author
  • berryinteresting

    Hello, Digging in and doing some customizations to ExpertHive and the Requests Extension. I notice that the requests page are visible to anyone, you do not have to be logged in. I would rather have it to where only registered vendors can view the requests, along with the user who posted it. Is this possible?

    ihor developer

    It’s possible to restrict offer visibility in HivePress settings (so only the request author and the vendor who made an offer can view it), but there’s no such feature for requests yet, the request itself is visible to anyone (e.g. to motivate vendors to register if they see some request and want to reply). It’s possible to redirect the requests page for non-vendors with a simple code snippet, but restricting the single request page requires more customizations, please let me know if this works for you and I’ll post the snippet.


    I think that may work. I would appreciate the snippet! Thanks!

    ihor developer

    Please try this one, you can add it via the Code Snippets plugin:

    	function() {
    		if ( function_exists( 'hivepress' ) && hivepress()->router->get_current_route_name() === 'requests_view_page' && ! current_user_can( 'edit_posts' ) ) {
    			wp_safe_redirect( 'set custom URL here' );
Viewing 4 posts - 1 through 4 (of 4 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.