Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Make Clickable Tweet

Descrizione

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(), 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.

Installazione

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:

<?php make_clickable_tweet($tweetcontent); ?>

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.

If you want to be super-duper safe (and smart), you might want to wrap the whole thing

<?php
if (function_exists('make_clickable_tweet'))
{
make_clickable_tweet($tweetcontent);
}
?>

FAQ

Why did you make this?

I had a bunch of tweet data that I needed to render like a real tweets.

Recensioni

Non ci sono recensioni per questo plugin.

Contributi e sviluppo

“Make Clickable Tweet” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “Make Clickable Tweet” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

0.2

Changed order of regular expressions.

0.1

Release