Page Templates

This Access Condition prevents unauthorized users from being able to visit:

  • pages that use any or select templates


Good to know: This Access Condition will not hide items from archive pages, search results, widgets, custom lists, or the WP REST API.


Example – Restrict All Page Templates

Only authorized users will be able to visit pages that use a template selected on the Edit screen (anything but “Default template”).

Was this article helpful to you?