bbp_is_query_name

Check the passed parameter against the current _bbp_query_name.

Description

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

Parameters (1)

0. $name — Optional. (string) => ''
The name.

Usage

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

Defined (1)

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

/includes/common/template.php  
  1. function bbp_is_query_name( $name = '' ) { 
  2. return (bool) ( bbp_get_query_name() === $name );