Return to Snippet

Revision: 31022
at August 27, 2010 09:52 by screamwork


Initial Code
$api_key = "your API-KEY here";
wp_enqueue_script("twitter-anywhere",
	"http://platform.twitter.com/anywhere.js?id={$api_key}&v=1");
add_action("wp_head", "twitter_anywhere");

function twitter_anywhere()
{
	echo '<script type="text/javascript">';
	echo 'twttr.anywhere(onAnywhereLoad);';
	echo 'function onAnywhereLoad(twitter) { twitter.hovercards(); }';
	echo '</script>';
}

Initial URL

                                

Initial Description

                                

Initial Title
enable hovercards in functions.php

Initial Tags
wordpress

Initial Language
PHP