Templates
The plugin ships templates for the locked-content screen, the login and registration form, and the profile-visibility overrides.
Bundled templates
Section titled “Bundled templates”Under public/templates/:
bplock-locked-content-template.php- the screen shown for restricted content.bplock-login-form.php- the built-in login form.bplock-register-form.php- the built-in registration form.bplock-youzify-profile-visibility.php- the Youzify profile-visibility tab content.
Under templates/, per template pack, the member single home override used for locked
profiles:
templates/bp-nouveau/templates/bp-legacy/members/single/templates/bp-boss-theme/members/single/
Overriding the locked-content template in your theme
Section titled “Overriding the locked-content template in your theme”The locked-content template can be overridden from your theme. Place a file at:
your-theme/buddypress-private-community-pro/bplock-locked-content-template.phpIf that file exists it is used for locked WordPress pages, locked custom post types, and
locked BuddyPress components. Otherwise the bundled template (or the path returned by the
blpro_locked_content_template filter) is used.
Overriding via filters
Section titled “Overriding via filters”Rather than a theme file, you can point any template to a custom path:
blpro_locked_content_template- locked-content template path.bplock_login_form- login form template path.bplock_youzify_profile_visibility- Youzify profile-visibility template path.
Profile-visibility template selection
Section titled “Profile-visibility template selection”When a member has restricted their profile and the viewer is not allowed to see it, the
plugin registers a template stack that serves the member single home from its own
per-pack folder. The folder chosen depends on the active template pack: BuddyBoss theme
and BP Nouveau use the Nouveau override; BP Legacy uses the Legacy override. This can be
short-circuited with blpro_register_template_location.

