# PHP Code to Make Requests page visible only to vendors

**URL:** <https://community.hivepress.io/t/php-code-to-make-requests-page-visible-only-to-vendors/17757>\
**Category:** Requests\
**Created:** [June 12, 2026, 3:12am UTC](https://community.hivepress.io/t/php-code-to-make-requests-page-visible-only-to-vendors/17757 "2026-06-12T03:12:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wbailie](https://community.hivepress.io/letter_avatar_proxy/v4/letter/w/c6cbf5/32.png) [@Wbailie](https://community.hivepress.io/u/Wbailie)\
**Post date:** [June 12, 2026, 3:12am UTC](https://community.hivepress.io/t/php-code-to-make-requests-page-visible-only-to-vendors/17757/1 "2026-06-12T03:12:21Z")

</div>

Looking for a PHP Code Snippet to restrict Request page to Vendors/Contributors Only.

Have looked into Nav Menu Plugin but this just hides the Menu, thinking fulling blocking non vendors is safer.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [June 12, 2026, 3:12am UTC](https://community.hivepress.io/t/php-code-to-make-requests-page-visible-only-to-vendors/17757/2 "2026-06-12T03:12:21Z")

</div>

Thanks for your message — our team will reply shortly.

In the meantime, you can also get instant help from our [AI Assistant](https://www.chatbase.co/PdfFucPZ0vUmh3dfM-oe1/help), familiar with all the docs and solutions we’ve shared over the years.

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [June 12, 2026, 7:01am UTC](https://community.hivepress.io/t/php-code-to-make-requests-page-visible-only-to-vendors/17757/3 "2026-06-12T07:01:06Z")

</div>

Hi,

You may want to consider using the [Membership](https://hivepress.io/extensions/memberships/) plugin to restrict access to pages, this could also serve as a monetization option for your site.

If this option doesn’t quite fit your needs, please feel free to check the solution using a third-party plugin here: [Restrict requests page visibility to vendors only](https://community.hivepress.io/t/restrict-requests-page-visibility-to-vendors-only/3746).

Hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [July 12, 2026, 7:01am UTC](https://community.hivepress.io/t/php-code-to-make-requests-page-visible-only-to-vendors/17757/4 "2026-07-12T07:01:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
