Skip to content

When you use the built-in option on the Visitor Restrictions tab, the plugin shows its own login form on restricted content.

Choose Use built-in form as the “What Visitors See Instead” option. On a locked page, the visitor sees your restriction message (edited with the rich-text editor) followed by the login form. The message defaults to a friendly members-only note if you leave it empty, and it can be changed with the blpro_default_locked_message filter.

You can also place the form anywhere with a shortcode:

[blpro_login_form]
  • The form submits over AJAX. On success the member is logged in and the page reloads or redirects.
  • The form has a Forgot password? link to the WordPress password reset page.
  • When BuddyPress registration is open, a Register button links to the BuddyPress sign-up page. New members register there, so your BuddyPress registration settings and any sign-up protection apply. When registration is closed, the button is hidden.
  • A CAPTCHA added by a login protection plugin is checked on this form too.

The visitor-facing endpoint is blpro_login. It is open to logged-out users by design and is protected by a nonce rather than a capability check. See Options and AJAX.

Choose Another plugin’s login form and paste a login-form shortcode from another plugin. The plugin renders that shortcode in place of its own form, so you can reuse an existing login experience.

Choose Redirect to a page and pick a destination page. Visitors who hit restricted content, and members who log out, are sent to that page.

These filters let you change the response text:

  • bplock_login_success_message
  • bplock_login_failed_message