开发者 | clarklab |
---|---|
更新时间 | 2012年4月4日 13:01 |
PHP版本: | 2.7 及以上 |
WordPress版本: | 3.3.1 |
<?php make_clickable_tweet($tweetcontent); ?>
Of course, that above function will simply return the tweet content, if you'd like to display it in your templates you might want to toss an echo in front there.
If you want to be super-duper safe (and smart), you might want to wrap the whole thing
<?php if (function_exists('make_clickable_tweet')) { make_clickable_tweet($tweetcontent); } ?>
I had a bunch of tweet data that I needed to render like a real tweets.