這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Reve Click2Tweet

外掛說明

Add totally custom, responsive and fast Click to tweet boxes to your WordPress site.

Reve Click2Tweet is totally free, superfast and very light-weight (only 58Kb!).

How to use

Simply insert the shortcode [revec2t] in any post, page or HTML/text widget. To add it you can use the Reve Click2Tweet classic editor button, if option is enabled (by default).

The shortcode will be replaced by the linkable box that allows your visitors to share any content on Twitter.

You can use the following attributes into the shortcode: text, url, hashtags, via, label, icon and short.

All attributes are optional. If you don’t set the text, the shortcode will display the URL to share. Also, you can set manually the URL, or the shortcode will generate the current page URL.

The attributes hashtags, via, label, icon and short allows you to custom each shortcode. If set, they will overwrite the saved options. Also, if you use the special value 0 to any attribute, the saved option will be deactivated.

Usually you only need to use the text attribute to set the text of the tweet, and allow the shortcode to do the rest.

Some examples

  • [revec2t] : The simplest example. As you don’t set the text, the current page URL will be shown in its place.

  • [revec2t text=”Text of the tweet”] : The recommended use. Displays the box with the text, the current URL and the saved options.

  • [revec2t text=”Text of the tweet” url=”http://…”] : To use a custom URL. Note that URLs must be valid.

  • [revec2t text=”Text of the tweet” label=”Click here”] : Changes the default call to action label.

  • [revec2t text=”Text of the tweet” hashtags=”hashtag1,hashtag2″] : Sets the hashtags of the tweet, or changes the default hashtags parameter, if set.

  • [revec2t text=”Text of the tweet” via=”twitter_user”] : Sets or changes the default via parameter.

  • [revec2t text=”Text of the tweet” via=”0″ hashtags=”0″] : Disables the default via and hashtags parameters, if set in options.

About the Twitter API

Note that the Twitter API will receive and validate all the submitted params. So, is a best practice to test each shortcode when it is published, especially if the text or the URL are too long.

Currently the maximum length of a tweet is 280 characters, including the text, the URL, the via parameter, the hashtags and the blanks.

Need help?

Contribute development

You can contribute as follow:

螢幕擷圖

  • The plugin options page, in Settings > Reve Click2Tweet (screenshot-1.png).

安裝方式

  1. Download this plugin to the “/wp-content/plugins/” directory of your site.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Go to “Settings > Reve Click2Tweet” admin page to set the default options.

使用者評論

閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Reve Click2Tweet〉的開發相關工作。

參與者

將〈Reve Click2Tweet〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3.0

  • 2021-02-02: Tested in WordPress 5.6.

1.2.0

  • 2018-04-01: Fixed some issues.

1.1.0

  • 2018-03-20: Fixed some issues.

1.0.0

  • 2018-03-20: Initial stable version.