Plugin Directory

Tweetable

Upgrading

Generally, all you should have to do is click the Update button on the Plugins page when a new update becomes available.

Template Tags

There are a few template tags available in Tweetable.

  • <?php tweetable_latest_tweets(); ?> - Outputs your lastest tweets. You can optionally pass a number to it to controll how many it prints. E.g. <?php tweetable_latest_tweets(5); ?>.

  • <?php tweetable_follower_count(); ?> - Prints the number of people following you on Twitter in plain text. You can also call it in the form of <?php $var = tweetable_follower_count(FALSE); ?> if you need to have the number returned instead of output to the screen.

  • <?php tweetable_tweetmeme_button(); ?> - Displays a Tweetmeme (Tweetmeme.com) button. Call <?php tweetable_tweetmeme_button('compact'); ?> for the compact version.

Hooks

You can extend Tweetable by tying your theme or plugin functions into the included hooks.

Filter: tweetable_autotweet_permalink

Runs when a post is tweeted, before the URL is shortened. Parameters: $permalink.

Filter: tweetable_autotweet_title

Runs after the post title is retrieved, but before it is merged into the string to be tweeted. Parameters: $title.

Filter: tweetable_autotweet_tweet

Runs immediately before the auto-tweet is sent, after the title and link are combined and (if necessary) shortened. Parameters: $tweet.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (1 reporting)

100%
100,1,1 100,1,1
100,1,1 100,1,1
67,3,2
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(16 ratings)