bbp_get_form_forum_title

Return the value of forum title field.

Description

(string) bbp_get_form_forum_title(); 

Returns (string)

Value of forum title field


Usage

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

Defined (1)

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

/includes/forums/template.php  
  1. function bbp_get_form_forum_title() { 
  2.  
  3. // Get _POST data 
  4. if ( bbp_is_post_request() && isset( $_POST['bbp_forum_title'] ) ) { 
  5. $forum_title = $_POST['bbp_forum_title']; 
  6.  
  7. // Get edit data 
  8. } elseif ( bbp_is_forum_edit() ) { 
  9. $forum_title = bbp_get_global_post_field( 'post_title', 'raw' ); 
  10.  
  11. // No data 
  12. } else { 
  13. $forum_title = ''; 
  14.  
  15. return apply_filters( 'bbp_get_form_forum_title', esc_attr( $forum_title ) );