twitter_stream_hashtag_wrap

The Twitter Stream twitter stream hashtag wrap function.

Description

twitter_stream_hashtag_wrap( $match ); 

Parameters (1)

0. $match
The match.

Usage

  1. if ( !function_exists( 'twitter_stream_hashtag_wrap' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'twitter-stream/twitter-stream.php'; 
  3.  
  4. // The match. 
  5. $match = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twitter_stream_hashtag_wrap($match); 
  9.  

Defined (1)

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

/twitter-stream.php  
  1. function twitter_stream_hashtag_wrap( $match ) { 
  2. return sprintf( 
  3. '<span class="hash-tag"><a href="http://twitter.com/search?q=%s" title="Search for %s on Twitter">%s</a></span>',  
  4. esc_attr( urlencode( $match[1] ) ),  
  5. esc_html( $match[1] ),  
  6. esc_html( $match[1] ) 
  7. );