bb_uri

Echo a URI based on the URI setting.

Description

bb_uri( (constant) $resource = null, (constant) $query = null, $context = ); 

Parameters (3)

0. $resource — Optional. (constant) => null
String The directory, may include a querystring
1. $query — Optional. (constant) => null
Mixed The query arguments as a querystring or an associative array
2. $context
Integer The context of the URI, use BB_URI_CONTEXT_*

Usage

  1. if ( !function_exists( 'bb_uri' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-core.php'; 
  3.  
  4. // string The directory, may include a querystring 
  5. $resource = null; 
  6.  
  7. // mixed The query arguments as a querystring or an associative array 
  8. $query = null; 
  9.  
  10. // integer The context of the URI, use BB_URI_CONTEXT_* 
  11. $context = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_uri($resource, $query, $context); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_uri( $resource = null, $query = null, $context = BB_URI_CONTEXT_A_HREF
  2. echo apply_filters( 'bb_uri', bb_get_uri( $resource, $query, $context ), $resource, $query, $context );