Login for Visitors
BuddyPress Private Community Pro overviewPremiumGet BuddyPress Private Community Pro →
When you use the built-in option on the Visitor Restrictions tab, the plugin shows its own login form on restricted content.
The built-in form
Section titled “The built-in form”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.
Login shortcode
Section titled “Login shortcode”You can also place the form anywhere with a shortcode:
[blpro_login_form]How login works
Section titled “How login works”- 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.
Use a third-party form instead
Section titled “Use a third-party form instead”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.
Redirect instead of showing a form
Section titled “Redirect instead of showing a form”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.
Customizing the messages
Section titled “Customizing the messages”These filters let you change the response text:
bplock_login_success_messagebplock_login_failed_message

