Skip to content

Instantly share code, notes, and snippets.

@wpperform
Last active November 19, 2015 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpperform/fbe354c7c2d0acecc5d7 to your computer and use it in GitHub Desktop.
Save wpperform/fbe354c7c2d0acecc5d7 to your computer and use it in GitHub Desktop.
Parameters:
All parameters are optional.
alt = The text to tweet, which replaces the text between the opening and closing shortcodes
hashtag = A comma separated list of the hashtags to be appended to the tweet WITHOUT THE #
link = The link to be included in the tweet, which otherwise defaults to the post's permalink
via = Twitter user name to associate with the tweet WITHOUT THE @
Example 1: Basic usage
[tweetable]This is truly amazing![/tweetable]
Example 2: Link one text, such as a prompt, but tweet another, such as the actual message
[tweetable alt="This is truly amazing!"]Tell the world this is truly amazing![/tweetable]
Example 3: Link to a URL other than the one where you place the shortcode
[tweetable link="https://wpperform.com" hashtag="wordpress,hosting" via="wpperform"]This is truly amazing![/tweetable]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment