Skip to content

wp plugin to get the latest tweet and show it with a simple function call.

License

Notifications You must be signed in to change notification settings

TheCellarRoom/wp-plugin-get-latest-tweet

Repository files navigation

wp-plugin-get-latest-tweet

wp plugin to get the latest tweet and show it with a simple function call.

prerequisites:

  1. you have set up an app on dev.twitter.com to get your API keys and secrets
  2. your host allows file_put_contents and file_get_contents (for caching the tweet).

to use:

<?php if (function_exists(getTweet)) { 
getTweet(); 
}
else { 
print 'Did you know you can follow us on twitter @youraccount'; 
} 
?>

probably best to wrap it in a <span> or a <div> so it can then be styled accordingly.

About

wp plugin to get the latest tweet and show it with a simple function call.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages