{"id":17519,"date":"2012-04-04T03:37:02","date_gmt":"2012-04-04T03:37:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/make-clickable-tweet\/"},"modified":"2012-04-04T05:01:38","modified_gmt":"2012-04-04T05:01:38","slug":"make-clickable-tweet","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/make-clickable-tweet\/","author":289678,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"trunk","tested":"3.3.2","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Make Clickable Tweet","header_author":"ClarkLab","header_description":"","assets_banners_color":"eeeeee","last_updated":"2012-04-04 05:01:38","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/clarklab.com\/","header_plugin_uri":"","header_author_uri":"http:\/\/clarklab.com","rating":0,"author_block_rating":0,"active_installs":100,"downloads":1919,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>None yet (or probably ever)<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"527044","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9537,9779,161,159],"plugin_category":[56],"plugin_contributors":[85534],"plugin_business_model":[],"class_list":["post-17519","plugin","type-plugin","status-publish","hentry","plugin_tags-make_clickable","plugin_tags-regex","plugin_tags-tweet","plugin_tags-twitter","plugin_category-social-and-sharing","plugin_contributors-clarklab","plugin_committers-clarklab"],"banners":{"banner":"https:\/\/ps.w.org\/make-clickable-tweet\/assets\/banner-772x250.png?rev=527044","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/make-clickable-tweet_eeeeee.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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 <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/make_clickable\">make_clickable()<\/a>, but it just works with plain URLs, so I took it one more step to make_clickable_tweet(). It's basically a regular expression wrapped in a simple function, but I figured someone else out there might need it.<\/p>\n\n<!--section=installation-->\n<p>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:<\/p>\n\n<pre><code>&lt;?php make_clickable_tweet($tweetcontent); ?&gt;\n<\/code><\/pre>\n\n<p>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.<\/p>\n\n<p>If you want to be super-duper safe (and smart), you might want to wrap the whole thing<\/p>\n\n<pre><code>&lt;?php\nif (function_exists('make_clickable_tweet'))\n{\nmake_clickable_tweet($tweetcontent);\n}\n?&gt;\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt>Why did you make this?<\/dt>\n<dd><p>I had a bunch of tweet data that I needed to render like a real tweets.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2<\/h4>\n\n<p>Changed order of regular expressions.<\/p>\n\n<h4>0.1<\/h4>\n\n<p>Release<\/p>","raw_excerpt":"A plugin for converting @user mentions, #hashtags and URLs in a tweet into clickable links.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=17519"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/clarklab"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17519"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17519"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17519"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17519"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17519"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}