Release notes / BuddyPress Lock - Private Community
BuddyPress Add-on Plugin

BuddyPress Lock - Private Community

A public BuddyPress site exposes member profiles, groups, and activity to search engines and anonymous visitors who should not have access. BuddyPress Lock lets admins restrict any combination of BuddyPress components and WordPress pages to logged-in members only, with a custom restriction message for visitors who hit a locked page. No separate membership plugin required.

25 releases
v2.4.0 latest
November 18, 2026 shipped

v2.4.0 Latest

November 18, 2026
New 1 Improve 6 Fix 13 Security 12 Dev 5 Compat 1

New

  • The Partial Protection tab now warns you when Full Protection is on and its rules are not being applied, and confirms your settings are still saved.

Improve

  • Removed the silent 1,000-page cap that stopped slug matching on large sites.
  • The redirect-page picker and the add-all-pages tool no longer query every published page, and no longer issue one query per page. Both limits are filterable.
  • Locked-page filtering runs only on search, feed, REST and sitemap queries. It previously ran on every query on the site and discarded the result.
  • Pages locked by ID in old versions are turned into Protected URL rules once, on update, and the settings migrations no longer run on every page load.
  • The login form on the members-only screen is a real form: Enter logs you in, password managers fill it, and you return to the page you asked for, including through the sign in link.
  • The members-only screen's Create an account link opens the BuddyPress registration page, so activation emails, required profile fields and anti-spam or captcha checks all apply. The in-place Register tab that skipped them is gone.

Fix

  • Pages chosen in the old Pages list (versions before 2.0) are moved to Protected URLs when you update, so they are locked again; recent versions had left them public.
  • Saving the Partial Protection tab no longer switches Full Protection off.
  • Locking Groups or Activity no longer locks members whose username contains "groups" or "activity", and locking Members no longer locks a group's Members tab.
  • The members-only screen no longer shows the locked member's or page's name in the browser tab title.
  • Upgrades from pre-2.0 no longer lose the locked-page list. The migration wrote it to the wrong option, and the runtime read a key that was never populated. Misplaced lists are recovered automatically.
  • Stopped defining BuddyPress's BP_ENABLE_MULTIBLOG and BP_ROOT_BLOG constants, which pinned multisite installs to root blog 1 with multiblog disabled.
  • Settings screens no longer misread a missing settings record as a value, which could cause notices on a fresh install.
  • Corrected the installation instructions, which pointed to Settings instead of WB Plugins, and the documentation links, which returned 404 for everyone.
  • The members-only login screen now uses your theme's colours in light and dark mode on BuddyX, BuddyX Pro and Reign, and its messages use the standard BuddyPress notice style.
  • Protecting a page now works even when that page is also saved as the redirect page; it stayed public under Show Login Form and Show Custom Content.
  • Removed the Share Feedback link from the Welcome tab, because the page it pointed to no longer exists.
  • Renamed an admin template file whose name made some hosting firewalls block the plugin upload.
  • The members-only screen no longer shows the locked page's text in its meta description (Yoast SEO and Rank Math) or its title in a comments feed link or member and group activity RSS feed link, so search snippets and chat previews stay neutral.

Security

  • Pages locked with Protected URLs are no longer readable through the REST API, REST lists, RSS feeds or XML sitemaps.
  • BuddyPress activity RSS feeds (site-wide, member, group, favorites and mentions) are now blocked for logged-out visitors when Activity, Members or Groups is locked, and always under Full Protection.
  • With Site Wide Activity locked, logged-out visitors no longer see activity on group pages, profiles or widgets.
  • The users sitemap is closed while Members is locked.
  • Failed lock-screen logins are counted per visitor IP and username, so nobody can lock a member out from elsewhere, and the login request now always requires a valid security token.
  • Locked pages are now removed from site search results. Locked URLs were resolved by comparing a full path against a page slug, so no nested page ever matched and wildcard rules were skipped entirely. A locked page kept its title, URL and excerpt in search results for logged-out visitors even though opening it was correctly blocked.
  • Whitelist entries now match on path boundaries instead of substrings. Whitelisting "secret" also made "/secret-area/payroll/" public, and a one-letter entry exposed the whole site.
  • A whitelist entry of "/" no longer un-protects your XML sitemap or feeds. WordPress treats sitemap requests as the front page, so under Full Protection the front-page rule exposed /wp-sitemap.xml.
  • Locking a page by ID no longer also locks unrelated pages whose URL happens to contain its slug, so locking "about" no longer locks "/about-us-blog/".
  • On a fresh install the Partial Protection tab showed no components ticked while the site actually locked members, groups and activity. The tab and the site now read the same setting.
  • The members-only screen no longer names the hidden member, group or page in shared link previews: Activity Share, Yoast SEO and Rank Math social tags and schema are turned off there, and the screen is marked noindex.
  • Added the missing direct-access guards to five PHP files.

Dev

  • Requires PHP 8.1. Removed the Grunt build, the WordPress Plugin Boilerplate loader and core classes, the Bp_Lock_Globals class and the $bplock global, the review notice, the Discover tab, the uninstall stub, Font Awesome (about 1 MB) and the lock-screen Register tab with its bplock_register AJAX action, bp_lock_after_register_form action and bplock_register_success_message filter. Releases are built with bin/build-release.sh and translations with wp i18n make-pot.
  • Lock decisions for templates, search, REST, feeds and sitemaps now share one check, and component locks follow BuddyPress routing instead of matching URL text.
  • Added bplock_filter_search_results, bplock_get_all_pages_limit and bplock_redirect_page_limit filters.
  • All allow and deny matching now runs through one Bp_Lock_Url_Matcher class so the two lists cannot drift apart again.
  • The add-all-pages AJAX response is now an object with urls, truncated and limit. The previous bare array is still accepted by the bundled script.

Compat

  • Tested up to WordPress 7.1.

v2.3.1

July 1, 2026
Security 3 Dev 1 Compat 1

Security

  • Blocked the REST API for logged-out visitors while the lock is active. Full Protection blocks every route except the login allowlist; Partial Protection blocks the BuddyPress namespace and user enumeration when a component is locked.
  • Blocked feeds and XML sitemaps for logged-out visitors under Full Protection so private content is no longer syndicated or enumerated.
  • Hardened partial-mode URL locking so a locked page cannot be reached through its ?page_id= or ?p= query URL.

Dev

  • Added bplock_rest_allowed_routes, bplock_restrict_rest_route, and bplock_restrict_feeds filters to tune the new enforcement.

Compat

  • Declared Requires PHP 7.4 and Requires Plugins: buddypress in the plugin headers.

v2.3.0

July 6, 2026
New 1 Improve 3 Fix 3 Security 1 Dev 1

New

  • Joined the shared WB Plugins hub dashboard so all Wbcom plugins share one clean entry point.

Improve

  • Rebuilt the admin settings screen with the modern Wbcom card-panel interface (sidebar navigation, cards, accessible toggles).
  • Replaced native browser confirm() dialogs with an accessible in-page confirmation modal and toast notifications.
  • Added theme-aware dark-mode styling so the members-only card and login/register form stay readable in dark themes.

Fix

  • Fixed protected pages rendering unstyled by falling back to the committed source assets when the minified build is absent.
  • Corrected the Font Awesome font path that returned a 404 on the login and register forms.
  • Corrected the default-locked-message filter name from bploc_default_locked_message to bplock_default_locked_message.

Security

  • Added a capability check to the get-all-pages admin AJAX handler.

Dev

  • Removed the legacy shared admin wrapper, the unused tab-save AJAX handler, and unused admin assets.

v2.2.0

Dev 5 Compat 1

Dev

  • Fixed all WordPress Coding Standards (WPCS) violations across 28 PHP files
  • Applied strict comparisons, Yoda conditions, and proper type casting throughout
  • Added ABSPATH direct access protection to all PHP files
  • Replaced deprecated functions (parse_url, serialize) with WordPress equivalents
  • Fixed all Plugin Check errors (0 errors)

Compat

  • Updated "Tested up to" to WordPress 6.9

v2.1.2

Improve 3 Fix 1 Security 3

Improve

  • Optimized script and style enqueuing to load only for logged-out users, preventing conflicts
  • Admin AJAX assets now properly load minified versions in production for better performance
  • Added wbcom assets to build process for complete minification and RTL support

Fix

  • All CSS/JS files now properly use minified versions when SCRIPT_DEBUG is disabled

Security

  • Fixed critical registration bypass vulnerability that allowed user registration without proper nonce verification
  • Hardened nonce verification with separate checks for presence and validity
  • Added WordPress registration setting validation to prevent unauthorized registrations

v2.1.1

Improve 2 Fix 2

Improve

  • Implemented BuddyPress-native detection for URL-structure agnostic handling
  • Added activation patterns to default whitelist template

Fix

  • Fixed BuddyPress activation pages being locked in both partial and full protection modes
  • Activation URLs now properly bypass protection to allow new user account activation

v2.1.0

Improve 7 Fix 7 Security 2 Dev 4

Improve

  • Improved login and registration popup display and functionality
  • Enhanced UI for login and register forms with better styling
  • Improved save settings button design and user experience
  • Enhanced locked message content display and formatting
  • Better form handling with custom content messages positioned above forms
  • Modernized CSS styling throughout the plugin
  • Advanced whitelist support with wildcard patterns for flexible URL protection

Fix

  • Fixed protection rules form submission and validation issues
  • Fixed line break rendering in restriction messages to display properly
  • Fixed custom content message positioning in login/registration forms
  • Fixed settings persistence to prevent data loss
  • Fixed duplicate entry prevention in protection rules
  • Fixed null post object handling to prevent PHP warnings
  • Fixed AJAX handler to properly preserve newlines and HTML formatting in rich text fields

Security

  • Implemented double sanitization for enhanced security across all inputs
  • Improved data validation and escaping

Dev

  • Enhanced translation system for better internationalization support
  • WordPress Coding Standards (WPCS) compliance improvements
  • Updated default content and messaging
  • Improved code quality and maintainability

v2.0.0

September 1, 2025
Note 10

Note

  • Completely rebuilt from the ground up for better performance
  • New modern admin interface that's easier to use
  • Added Partial Protection mode for selective content locking
  • Added Full Protection mode for complete site privacy
  • URL patterns with wildcards now supported (/docs/*)
  • built-in form, custom shortcode, or redirect
  • Automatic brute force protection (5 login attempts per 15 minutes)
  • Works smoothly with sites having 1000+ pages
  • Fixed compatibility with PHP 8.2
  • Your existing settings are automatically migrated

v1.9.3

August 4, 2024
Improve 5 Fix 3

Improve

  • Managed register button style for better user experience.
  • Improved admin UI for a smoother workflow.
  • Ensured consistent and meaningful labels throughout the interface.
  • Changed label text to be more descriptive and consistent.
  • Used constants, consistent output functions, and correctly escaped attributes.

Fix

  • Resolved BP lock login page issue and removed tab for register option.
  • Addressed deprecation notices, including PHP deprecated implicit conversion from float to int.
  • Resolved PHP deprecated issue.

v1.9.1

February 23, 2023
Fix 4

Fix

  • (#55)Fixed notice on the logged-out template
  • (#56)Fixed deprecated notices with PHP 8.0
  • Compatibility fixes with BuddyPress 12.0
  • Compatibility fixes with WordPress 6.5

v1.9.0

August 2, 2022
Fix 3

Fix

  • Updated admin ui
  • Change enable/disable button style
  • Remove button in wrapper

v1.8.0

May 18, 2022
Fix 4

Fix

  • Added Buddypress Recaptcha support for login/register forms
  • updated welcome title
  • #49 Login UI Issue managed
  • Added hook for login and register form

v1.7.1

April 13, 2022
Fix 2

Fix

  • Backend Options Improve UI
  • removed BP Components tab

v1.7.0

March 15, 2022
Fix 3

Fix

  • Fixed phpcs issues
  • Removed install plugin button from wrapper and phpcs fixes
  • (#39) Update login/register form UI for logged-out mode

v1.6.0

May 30, 2021
Improve 2

Improve

  • Added redirect option for log out user
  • Update backend switch UI

v1.5.0

February 26, 2021
Fix 1

Fix

  • PHPCS Fixes

v1.3.0

April 6, 2020
Fix 3

Fix

  • Support to override template
  • Remove cpt functionality
  • Updated admin notice

v1.2.0

Improve 1 Fix 2

Improve

  • Added select/unselect all options in page list admin settings. (#8)

Fix

  • Add condition for display registration form according to the 'Anyone can register' option. (#23)
  • Registration form input email style. (#26)

v1.1.1

June 3, 2019
Fix 1

Fix

  • Admin settings saving glitch.

v1.1.0

May 25, 2019
Improve 3 Fix 1

Improve

  • Added setting to use custom login registration form using shortcode.
  • Changed admin UI.
  • Compatibility with BuddyPress 4.3.0

Fix

  • Page lock issue.

v1.0.4

November 1, 2017
Improve 3 Fix 1

Improve

  • The locked page is not displayed in the archive.
  • Locked component and page will not be displayed in searched content.
  • Lock component single page if the component is blocked.

Fix

  • Lock custom post type.

v1.0.3

September 20, 2017
Note 3

Note

  • Plugin code structure changed
  • Added Multisite support
  • Lock Template file update

v1.0.2

Note 1

Note

  • Changed admin settings UI and a login/register form on the locked content template.

v1.0.1

Note 1

Note

  • Updated Labels.

v1.0.0

Note 1

Note

  • first version.