bb_tag_link

The BuddyPress bb tag link function.

Description

bb_tag_link( (int) $tag_id = 0, (int) $page = 1, $context = ); 

Parameters (3)

0. $tag_id — Optional. (int)
The tag id.
1. $page — Optional. (int) => 1
The page.
2. $context
The context.

Usage

  1. if ( !function_exists( 'bb_tag_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The tag id. 
  5. $tag_id = -1; 
  6.  
  7. // The page. 
  8. $page = 1; 
  9.  
  10. // The context. 
  11. $context = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_tag_link($tag_id, $page, $context); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_tag_link( $tag_id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF
  2. echo apply_filters( 'bb_tag_link', bb_get_tag_link( $tag_id, $page, $context ), $tag_id, $page, $context );