bbp_get_form_forum_visibility

Return value of forum visibility.

Description

(string) bbp_get_form_forum_visibility(); 

Returns (string)

Value of topic content field


Usage

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

Defined (1)

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

/includes/forums/template.php  
  1. function bbp_get_form_forum_visibility() { 
  2.  
  3. // Get _POST data 
  4. if ( bbp_is_post_request() && isset( $_POST['bbp_forum_visibility'] ) ) { 
  5. $forum_visibility = $_POST['bbp_forum_visibility']; 
  6.  
  7. // Get edit data 
  8. } elseif ( bbp_is_forum_edit() ) { 
  9. $forum_visibility = bbp_get_forum_visibility(); 
  10.  
  11. // No data 
  12. } else { 
  13. $forum_visibility =bbpress)->public_status_id; 
  14.  
  15. return apply_filters( 'bbp_get_form_forum_visibility', esc_attr( $forum_visibility ) );