[buddypress-trac] [BuddyPress Trac] #9057: Make BP Signups a Member's component deactivable feature

buddypress-trac noreply at wordpress.org
Sun Oct 13 04:46:52 UTC 2024


#9057: Make BP Signups a Member's component deactivable feature
--------------------------------------+-----------------------
 Reporter:  shawfactor                |       Owner:  imath
     Type:  enhancement               |      Status:  assigned
 Priority:  high                      |   Milestone:  15.0.0
Component:  Members                   |     Version:  2.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+-----------------------
Changes (by prbot):

 * keywords:  needs-patch => has-patch has-unit-tests


Comment:

 ''This ticket was mentioned in
 [https://github.com/buddypress/buddypress/pull/386 PR #386] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/imath/ @imath].''
 This PR introduces a way to completely disable BuddyPress signups using
 the following filter:

 {{{
 #!php
 add_filter( 'bp_is_members_signups_active', '__return_false' );
 }}}


 Once this filter is in place:

 - The registration workflow used is the one provided by WordPress.
 - The Admin screen to manage pending accounts is not available.
 - The Admin/Tools screen about invitations and optouts are disabled.
 - Options to allow site invitations or site memberships are disabled.

 I'd need @dcavins to check everything is fine if a user tries to reach a
 front-end screen about site invitations or site memberships. In
 particular, I believe there's still work to do in the case the above
 filter was added after  site invitations or site memberships were allowed
 from BuddyPress settings.

 I've currently tested on a regular WordPress config:
 - registering when the Members component signups feature is active.
 - registering when the Members component signups feature is **not**
 active.

 We need more testing for Multisite configs.

 Some parts of this PR code is duplicating with
 https://github.com/buddypress/buddypress/pull/368: mainly the
 `BP_Component_Feature` class.

 Trac ticket: https://buddypress.trac.wordpress.org/ticket/9057

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9057#comment:15>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list