Visitor Restrictions
The Visitor Restrictions tab controls what people who are not logged in can reach.
Every setting here affects logged-out visitors only. Settings are stored in the
blpro_nl_settings option.
Lock BuddyPress components
Section titled “Lock BuddyPress components”Turn on Lock BuddyPress components, then choose which of the following to protect:
- Community Members
- Activity Streams
- Profile
- User Groups
When a logged-out visitor opens a locked component, the plugin swaps the BuddyPress
template for its locked-content template (the login prompt or your custom message). This
runs on the bp_located_template filter.
Lock custom post types
Section titled “Lock custom post types”Turn on Lock custom post types and select which public custom post types to protect.
Both the archive and single views are covered (through the template_include and
single_template filters). The list of selectable post types can be filtered with
blpro_restrictable_post_types.
Lock WordPress pages
Section titled “Lock WordPress pages”Turn on Lock WordPress pages and pick individual pages. Logged-out visitors who open a locked page receive the locked-content template instead of the page.
Hidden from search
Section titled “Hidden from search”Locked components, pages, and custom post types are also removed from front-end search
results for logged-out visitors, so protected content does not leak through the search
index. This runs on pre_get_posts.
What visitors see instead
Section titled “What visitors see instead”Choose one of three behaviors for restricted content:
- Use built-in form. Show the plugin’s own login and registration form, preceded by a restriction message you edit with the rich-text editor. This is the default.
- 3rd party plugin shortcode. Paste a login-form shortcode from another plugin and the plugin renders it in place of the built-in form.
- Redirect to a page. Send visitors to a page you choose.
The restriction message and the login/registration behavior are covered in more detail in Login and registration.
Note on scope
Section titled “Note on scope”Restriction here is by explicit selection of components, pages, and post types. There is no free-text list of allowed or blocked URLs; you choose the specific items to lock. All of these checks apply only while the visitor is logged out.

