bp_forums_filter_tag_link

Get a link for a forum topic tags directory.

Description

(string) bp_forums_filter_tag_link( (string) $link, (string) $tag, (string) $page, (string) $context ); 

Returns (string)

Link of the form http://example.com/forums/tag/tagname/.

Parameters (4)

0. $link (string)
Link passed from filter.
1. $tag (string)
Name of the tag.
2. $page (string)
Page number, passed from the filter.
3. $context (string)
Passed from the filter but unused here.

Usage

  1. if ( !function_exists( 'bp_forums_filter_tag_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bp-forums-filters.php'; 
  3.  
  4. // Link passed from filter. 
  5. $link = ''; 
  6.  
  7. // Name of the tag. 
  8. $tag = ''; 
  9.  
  10. // Page number, passed from the filter. 
  11. $page = ''; 
  12.  
  13. // Passed from the filter but unused here. 
  14. $context = ''; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = bp_forums_filter_tag_link($link, $tag, $page, $context); 
  18.  

Defined (1)

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

/bp-forums/bp-forums-filters.php  
  1. function bp_forums_filter_tag_link( $link, $tag, $page, $context ) { 
  2. /** 
  3. * Filters the link for a forum topic tags directory. 
  4. * @since 1.1.0 
  5. * @param string $value Link for the forum topic tag directory. 
  6. */