[buddypress-trac] [BuddyPress Trac] #8734: Introduce simple "Private Site" toggle

buddypress-trac noreply at wordpress.org
Wed Oct 5 19:47:52 UTC 2022


#8734: Introduce simple "Private Site" toggle
-----------------------------+-----------------------
 Reporter:  dcavins          |       Owner:  (none)
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  11.0.0
Component:  Core             |     Version:  10.4.0
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |
-----------------------------+-----------------------

Comment (by johnjamesjacoby):

 A few thoughts:

 * Try not to think about a future setting as "making a site private" but
 rather a "default community visibility"
 * Use `bp_current_user_can()` with some unique and new capability key
 * "Enable Private Site" should be something like "Community Access"
 * Checkbox on/off setting should be a filterable list (either a Select or
 Radios):
  * Public - Anyone: maps to `exist` cap: `current_user_can( 'exist' )`
  * Private - Registered Members - maps to `is_user_logged_in()` callback
  * (Custom) - added by plugins
 * New member registration setting should be nearby in the GUI to help
 users imagine what that flow is

 Now is a good time to (re)consider the default value of this setting:

 * Public by default for upgrades
 * Private by default for new installations
 * Relative to if the community has open sign-ups, is invite-only, etc...

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


More information about the buddypress-trac mailing list