bbp_admin_setting_callback_group_forums

Allow BuddyPress group forums setting field.

Description

bbp_admin_setting_callback_group_forums(); 

Usage

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

Defined (1)

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

/includes/admin/settings.php  
  1. function bbp_admin_setting_callback_group_forums() { 
  2. ?> 
  3.  
  4. <input name="_bbp_enable_group_forums" id="_bbp_enable_group_forums" type="checkbox" value="1" <?php checked( bbp_is_group_forums_active( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_enable_group_forums' ); ?> /> 
  5. <label for="_bbp_enable_group_forums"><?php esc_html_e( 'Allow BuddyPress Groups to have their own forums', bbpress ); ?></label> 
  6.  
  7. <?php