bbp_set_query_name

Set the '_bbp_query_name' setting to $name.

Description

bbp_set_query_name( (string) $name = '' ); 

Parameters (1)

0. $name — Optional. (string) => ''
What to set the query var to

Usage

  1. if ( !function_exists( 'bbp_set_query_name' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/template.php'; 
  3.  
  4. // What to set the query var to 
  5. $name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_set_query_name($name); 
  9.  

Defined (1)

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

/includes/common/template.php  
  1. function bbp_set_query_name( $name = '' ) { 
  2. set_query_var( '_bbp_query_name', $name );