_bb_list_tag_item

The BuddyPress bb list tag item function.

Description

_bb_list_tag_item( $tag, $args ); 

Parameters (2)

0. $tag
The tag.
1. $args
The args.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function _bb_list_tag_item( $tag, $args ) 
  2. $url = esc_url( bb_get_tag_link( $tag ) ); 
  3. $name = esc_html( bb_get_tag_name( $tag ) ); 
  4. if ( 'list' == $args['format'] ) { 
  5. $id = 'tag-' . $tag->tag_id . '_' . $tag->user_id; 
  6. return "\t" . '<li id="' . $id . '"' . get_alt_class( 'topic-tags' ) . '><a href="' . $url . '" rel="tag">' . $name . '</a> ' . bb_get_tag_remove_link( array( 'tag' => $tag, 'list_id' => $args['list_id'] ) ) . '</li>' . "\n";