bp_admin_setting_callback_group_creation

Allow all users to create groups field.

Description

bp_admin_setting_callback_group_creation(); 

Usage

  1. if ( !function_exists( 'bp_admin_setting_callback_group_creation' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_admin_setting_callback_group_creation(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-settings.php  
  1. function bp_admin_setting_callback_group_creation() { 
  2. ?> 
  3.  
  4. <input id="bp_restrict_group_creation" name="bp_restrict_group_creation" type="checkbox"value="1" <?php checked( !bp_restrict_group_creation( false ) ); ?> /> 
  5. <label for="bp_restrict_group_creation"><?php _e( 'Enable group creation for all users', buddypress ); ?></label> 
  6. <p class="description"><?php _e( 'Administrators can always create groups, regardless of this setting.', buddypress ); ?></p> 
  7.  
  8. <?php