bbp_admin_setting_callback_group_forums_root_id

Replies per page setting field.

Description

bbp_admin_setting_callback_group_forums_root_id(); 

Usage

  1. if ( !function_exists( 'bbp_admin_setting_callback_group_forums_root_id' ) ) { 
  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_root_id(); 
  7.  

Defined (1)

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

/includes/admin/settings.php  
  1. function bbp_admin_setting_callback_group_forums_root_id() { 
  2.  
  3. // Output the dropdown for all forums 
  4. bbp_dropdown( array( 
  5. 'selected' => bbp_get_group_forums_root_id(),  
  6. 'show_none' => __( '— Forum root —', bbpress ),  
  7. 'orderby' => 'title',  
  8. 'order' => 'ASC',  
  9. 'select_id' => '_bbp_group_forums_root_id',  
  10. 'disable_categories' => false,  
  11. 'disabled' => '_bbp_group_forums_root_id' 
  12. ) ); ?> 
  13.  
  14. <label for="_bbp_group_forums_root_id"><?php esc_html_e( 'is the parent for all group forums', bbpress ); ?></label> 
  15. <p class="description"><?php esc_html_e( 'Using the Forum Root is not recommended. Changing this does not move existing forums.', bbpress ); ?></p> 
  16.  
  17. <?php