Skip to content

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.

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.

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.

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.

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.

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.

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.