bbp_get_query_name

Get the '_bbp_query_name' setting.

Description

(string) bbp_get_query_name(); 

Returns (string)

To return the query var value


Usage

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

Defined (1)

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

/includes/common/template.php  
  1. function bbp_get_query_name() { 
  2. return get_query_var( '_bbp_query_name' );