Title: Make Clickable Tweet
Author: clarklab
Published: <strong>2012 年 4 月 4 日</strong>
Last modified: 2012 年 4 月 4 日

---

搜索插件

![](https://ps.w.org/make-clickable-tweet/assets/banner-772x250.png?rev=527044)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/make-clickable-tweet_eeeeee.svg)

# Make Clickable Tweet

 作者：[clarklab](https://profiles.wordpress.org/clarklab/)

[下载](https://downloads.wordpress.org/plugin/make-clickable-tweet.zip)

 * [详情](https://cn.wordpress.org/plugins/make-clickable-tweet/#description)
 * [评价](https://cn.wordpress.org/plugins/make-clickable-tweet/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/make-clickable-tweet/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/make-clickable-tweet/#developers)

 [支持](https://wordpress.org/support/plugin/make-clickable-tweet/)

## 描述

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()](https://codex.wordpress.org/Function_Reference/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.

## 安装

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);
    }
    ?>
    ```

## 常见问题

  Why did you make this?

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Make Clickable Tweet」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ clarklab ](https://profiles.wordpress.org/clarklab/)

[帮助将「Make Clickable Tweet」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/make-clickable-tweet)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/make-clickable-tweet/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/make-clickable-tweet/)，或通过[RSS](https://plugins.trac.wordpress.org/log/make-clickable-tweet/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/make-clickable-tweet/)。

## 更新日志

#### 0.2

Changed order of regular expressions.

#### 0.1

Release

## 额外信息

 *  版本 **0.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/make-clickable-tweet/)
 * 标签
 * [regex](https://cn.wordpress.org/plugins/tags/regex/)[tweet](https://cn.wordpress.org/plugins/tags/tweet/)
   [twitter](https://cn.wordpress.org/plugins/tags/twitter/)
 *  [高级视图](https://cn.wordpress.org/plugins/make-clickable-tweet/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/make-clickable-tweet/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/make-clickable-tweet/reviews/)

## 贡献者

 *   [ clarklab ](https://profiles.wordpress.org/clarklab/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/make-clickable-tweet/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://clarklab.com/)