twitter_timeline_js

The Jetpack by WordPress.com twitter timeline js function.

Description

twitter_timeline_js(); 

Usage

  1. if ( !function_exists( 'twitter_timeline_js' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/twitter-timeline.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twitter_timeline_js(); 
  7.  

Defined (1)

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

/modules/shortcodes/twitter-timeline.php  
  1. function twitter_timeline_js() { 
  2. echo '<script>!function(d, s, id) {var js, fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)) {js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js, fjs);}}(document, "script", "twitter-wjs");</script>';