Changeset 527041
- Timestamp:
- 04/04/2012 03:55:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
make-clickable-tweet/trunk/readme.txt
r527036 r527041 11 11 == Description == 12 12 13 In a recent project, I had a bunch of tweet content saved and needed a way to convert all URLs, hashtags, and user mentions contained within into clickable links. WordPress has a built-in function called [make_clickable()](http://codex.wordpress.org/Function_Reference/make_clickable), so I took it an extra step to make_clickable_tweet(). Its basically a fancyregular expression, but I figured someone else out there might need it.13 In a recent project, I had a bunch of tweet content saved and needed a way to convert all URLs, hashtags, and user mentions into clickable links. I found that WordPress has a built-in function called [make_clickable()](http://codex.wordpress.org/Function_Reference/make_clickable), but it just works with plain URLs, so I took it an extra step to make_clickable_tweet(). It's basically a regular expression, but I figured someone else out there might need it. 14 14 15 15 == Installation == 16 16 17 Using the plugin is pretty dang simple, as the function only has one parameter ,the content you wanted returned in a clickable form. To use the plugin, simply activate it then start using the function in your templates like so:17 Using the plugin is pretty dang simple, as the function only has one parameter: the content you wanted returned in a clickable form. To use the plugin, simply activate it then start using the function in your templates like so: 18 18 19 19 `<?php make_clickable_tweet($tweetcontent); ?>` 20 20 21 Of course, that above function will simply return the tweet content, if you'd like to display it you might want to toss an echo in front ofthere.21 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. 22 22 23 23 == Frequently Asked Questions == … … 29 29 == Screenshots == 30 30 31 None yet 31 None yet (or probably ever) 32 32 33 33 == Changelog == … … 43 43 == Upgrade notice == 44 44 45 None yet 45 None yet (or probably ever)
Note: See TracChangeset
for help on using the changeset viewer.