tweet

Tweet shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[tweet]'); 
  1. // variable usage 
  2. $result = do_shortcode('[tweet]'); 
  3. echo $result;  

Defined (1)

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

/modules/shortcodes/tweet.php  
  1. /* 
  2. * More parameters and another tweet syntax admitted: 
  3. * [tweet tweet="https://twitter.com/jack/statuses/20" align="left" width="350" align="center" lang="es"] 
  4. */ 
  5.  
  6. add_shortcode( 'tweet', array( 'Jetpack_Tweet', 'jetpack_tweet_shortcode' ) ); 
  7.  
  8. class Jetpack_Tweet { 
  9.  
  10. static $provider_args; 
  11.