BuddyPress Restrict Group Creation
up on the repo
lemme know about any bugs/issues/features.
This plugin will restrict group creation and settings to certain WP Capabilities. In addition, this plugin will auto-demote the group creator to group mod to ensure group settings may not be modified after creation. You may also define a group admin and mod that will be auto-assigned all new groups created.
Auto-assigning an admin and/or mod to new groups
In your wp-config.php file â€“ set the following constants and check â€˜Auto demote group creator to group modâ€˜ under the settings page.
define( ‘BP_RESTRICTGROUP_AUTOADD_ADMIN_USER_ID’, the_database_user_id );
and/or (admin inherits mod â€“ no reason to define the same user_id twice)
define( ‘BP_RESTRICTGROUP_AUTOADD_MOD_USER_ID’, the_database_user_id );
I’ll change this step in the future to selecting users via the admin settings page.
Basically, I changed up the group creation steps (removed all the others, add in a closed one) – then demote the group creator to a mod so they can’t go back and change the settings. You map an overall group creation cap level. Also you can map different cap levels to enabling a forum and the group status levels (private/hidden). If you leave those blank – then nothing appears and force a public only group otherwise make the same as the overall.
- The topic ‘BuddyPress Restrict Group Creation’ is closed to new replies.