Title: Bitly&#039;s WordPress Plugin
Author: bitlydeveloper
Published: <strong>2010 年 4 月 2 日</strong>
Last modified: 2026 年 3 月 10 日

---

搜索插件

![](https://ps.w.org/wp-bitly/assets/banner-772x250.jpg?rev=3272740)

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

![](https://ps.w.org/wp-bitly/assets/icon.svg?rev=3272740)

# Bitly's WordPress Plugin

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

[下载](https://downloads.wordpress.org/plugin/wp-bitly.2.8.1.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-bitly/)

## 描述

Love WordPress? Love Bitly? After installing this plugin, you’ll be able to shorten
a link and view clicks right from WordPress. Your new links will be saved to Bitly
for reference and deeper analysis.

_To do that, you must have a Bitly account to use the plugin. Your account is where
you store, edit, and view metrics for your links. Register at bitly.com._

No matter the type of site you own (from a personal blog to an ecommerce store and
everything in between) Bitly makes it easy to create shorter links and keep an eye
on your clicks. Whether you share your links on social, SMS, or email, a short link
is easier to manage and remember.

## 屏幕截图

 * [[
 * [[
 * [[

## 安装

Installing the plugin

You must have a Bitly account to connect to. You can create one at bitly.com. Your
account is where you store, edit, and view metrics for your links.
 If you’re familiar
with adding a plugin to WordPress directly, you can download the ZIP file and upload
it to /wp-content/plugins/ after step 2. Otherwise, follow these steps: 1. Go to
your WordPress plugins settings. 2. Click Add New. 3. Search for Bitly’s WordPress
Plugin. 4. Click Install Now. 5. Click Activate. 6. Scroll down the list of your
installed plugins, find Bitly, and click Settings. 7. Now you’ll connect the plugin
to your Bitly account. Scroll down to Bitly’s WordPress Plugin and click Authorize.
8. Sign in to Bitly, if necessary, and click Allow. The plugin will retrieve an 
authorization from Bitly and update the Bitly OAuth Token field. 9. Scroll down 
and click Save Changes. 10. Select which types of entries you’ll be creating short
links for. 11. If your Bitly account has more than one group, select a group. This
is the group where your short links will be saved in Bitly. 12. If your Bitly account
has more than one custom domain, select a domain. This is the domain that will be
used for your short links. 13. Click Save Changes.

Now you can shorten links when you create a new post!

Creating a short link

After publishing a page or post, you’ll see the Bitly’s WordPress Plugin option 
in the settings. Click Get Shortlink to create a link to the current content. The
link will be saved in your Bitly account, and you’ll be able to view the number 
of clicks it receives right from this setting.

Viewing a link’s click data

Click metrics for a short link will appear in the post’s or page’s settings. They
include the number of clicks today, the total number clicks over time, and a graph
of the number of clicks over the last 7 days.

## 常见问题

### After installation, do I need to update all my posts for short links to be created?

No. The first time a short link is requested for a particular post, the plugin will
automatically generate one.

## 评价

![](https://secure.gravatar.com/avatar/466a39057f26782a2624b22a1f5a3c83c09a8284c338e09bbeb22629609fb6f9?
s=60&d=retro&r=g)

### 󠀁[Plugin has been abandoned](https://wordpress.org/support/topic/plugin-has-been-abandoned-4/)󠁿

 [TheMarque](https://profiles.wordpress.org/themarque/) 2023 年 7 月 25 日

This plugin just no longer works and it starts to create critical errors with other
plugins on the website. Seems it is no longer supported, developed, or recommended.
Please remove from Wordpress Plugin directory.

![](https://secure.gravatar.com/avatar/224e2d05eb97de95c6f3eedad07319c3b07fb22ec601b299f70e9349427342d7?
s=60&d=retro&r=g)

### 󠀁[Plugin doesn’t work](https://wordpress.org/support/topic/plugin-doesnt-work-333/)󠁿

 [Gabor Lippert](https://profiles.wordpress.org/lunule/) 2022 年 3 月 9 日 1 回复

Just like the previous reviewer said: The plugin does not work. After clicking on
the Authorize button, logging in to the bit.ly account and allowing access, the 
message ‘ERROR: Failed to retrieve access token.’ will be displayed. Btw, the whole
service is like a bad joke. Documentation is practically non-existent, the WP plugin
is not maintained and doesn’t work.

![](https://secure.gravatar.com/avatar/7f4f41fddad56fd30819eb025d93fde763a6a4b3606af5e42b9d5bfb13bb161c?
s=60&d=retro&r=g)

### 󠀁[Not work!](https://wordpress.org/support/topic/not-work-297/)󠁿

 [Viktor Jenerál](https://profiles.wordpress.org/viktor961/) 2022 年 1 月 25 日

The plugin does not work. After clicking on the Authorize button, logging in to 
the bit.ly account and allowing access, the message ‘ERROR: Failed to retrieve access
token.’ will be displayed.

![](https://secure.gravatar.com/avatar/b008e61899480bf324ab55384b419d47aa67ed197ac019b44d79186af8e6bbbf?
s=60&d=retro&r=g)

### 󠀁[Muito bom, para quem tem rede social](https://wordpress.org/support/topic/muito-bom-para-quem-tem-rede-social/)󠁿

 [samuelo996](https://profiles.wordpress.org/samuelo996/) 2021 年 9 月 5 日

ta mais que provado que é um site bom, as vezes temos que pedir para pessoas encurtar
um link, uma TAG, ou uma campanha de publicidade, para mim está aprovado..

![](https://secure.gravatar.com/avatar/6c0c0623b7d490a978b920eae2607dcf42c1998c8386c9b3861e0528cb33b150?
s=60&d=retro&r=g)

### 󠀁[Cool](https://wordpress.org/support/topic/cool-1129/)󠁿

 [Yann Gourvennec](https://profiles.wordpress.org/ygourvennec/) 2021 年 6 月 21 
日

It’s taken me a while to understand the “generate short link” command does replace
the plain vanilla wp.me short-link. Well done Bitly, glad to see you and my vanity
url back in the console.

![](https://secure.gravatar.com/avatar/6b05d880c4cb4f3f48795025ba6dfb3d311e5953a5d3a5713c25087d52d39eff?
s=60&d=retro&r=g)

### 󠀁[Missing shorten also external URLs](https://wordpress.org/support/topic/missing-shorten-also-external-urls/)󠁿

 [raulsevimor](https://profiles.wordpress.org/raulsevimor/) 2021 年 5 月 29 日

In addition to generate short URLs of your posts, I would like to do it also with
external URL without leaving the WordPress console.

 [ 阅读所有23条评价 ](https://wordpress.org/support/plugin/wp-bitly/reviews/)

## 贡献者及开发者

「Bitly's WordPress Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ bitlydeveloper ](https://profiles.wordpress.org/bitlydeveloper/)
 *   [ clint.s ](https://profiles.wordpress.org/clints/)
 *   [ Muhammad Faizan Haidar ](https://profiles.wordpress.org/muhammadfaizanhaidar/)

「Bitly's WordPress Plugin」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-bitly/contributors)
为本插件所做的贡献。

[帮助将「Bitly's WordPress Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-bitly)

### 对开发感兴趣吗?

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

## 更新日志

#### 2.8.1

 * Version 2.8.1 release.

#### 2.8.0

 * Security Updates.
 * Fixes WordPress coding standards.

#### 2.7.4

 * Fixed nonce verification on disconnected
 * Enforce capability check for authorized user operations
 * Escape all output to prevent XSS

#### 2.7.3

 * Security update.

#### 2.7.2

 * Security update.
 * Various additional minor fixes.

#### 2.7.1

 * Updated to prevent short link generation when a post is viewed on the frontend,
   or edited (but not re-saved) on the backend.

#### 2.7.0

 * Updated to prevent short link (re)generation when bulk-editing posts.
 * Added placeholder message to Bitly metabox when creating new post.
 * Fixed issue where “Default Organization” field displayed incorrect value after
   configuration change.
 * Various additional minor fixes.

#### 2.6.0

 * Completely rebuilt for use with Bitly API version 4.

#### 2.5.2

 * Fixes various php warnings produced by assuming $post
 * Better response handling for wpbitly_get()

#### 2.5.0

 * Adds “Regenerate Shortlink” feature to pages and posts
 * Adds chart showing previous 7 days of activity

#### 2.4.3

 * Adds debugging to authorization process
 * Adds manual entry of the OAuth token in case automatic authorization fails

#### 2.4.1

 * Backwards compatible with PHP 5.2.4
 * Updates styling on settings page
 * Updates `wp_generate_shortlink()`
 * Adds debug setting back

#### 2.4.0

 * Updated for use with WordPress 4.9.2 and current Bitly Oauth

#### 2.3.2

 * Fixed a typo in `wpbitly_shortlink`

#### 2.3.0

 * Trimmed excess bloat from `wp_get_shortlink()`
 * Tightened up error checking in `wp_generate_shortlink()`

#### 2.2.6

 * Fixed bug where shortlinks were generated for any post type regardless of setting
 * Added `save_post` back, further testing needed

#### 2.2.5

 * Added the ability to turn debugging on or off, to aid in tracking down issues
 * Updated to WordPress coding standards
 * Removed `wpbitly_generate_shortlink()` from `save_post`, as filtering `pre_get_shortlink`
   seems to be adequate
 * Temporarily removed admin bar shortlink button (sorry! it’s quirky)

#### 2.2.3

 * Replaced internal use of cURL with wp_remote_get
 * Fixed a bug where the OAuth token wouldn’t update

#### 2.0

 * Updated for WordPress 3.8.1
 * Updated Bitly API to V3

#### 1.0.1

 * Fixed bad settings page link in plugin row meta on Manage Plugins page

#### 1.0

 * Updated for WordPress 3.5
 * Removed all support for legacy backwards compatibility
 * Updated Settings API implementation
 * Moved settings from custom settings page to Settings -> Writing
 * Enabled shortlink generation for scheduled (future) posts
 * Added I18n support.

#### 0.2.6

 * Added support for automatic generation of shortlinks when posts are viewed.

#### 0.2.5

 * Added support for WordPress 3.0 shortlink API
 * Added support for custom post types.

#### 0.1.0

 * Initial release of WP Bitly

## 额外信息

 *  版本 **2.8.1**
 *  最后更新：**3 月前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/wp-bitly/) 、 [Dutch](https://nl.wordpress.org/plugins/wp-bitly/)、
   [English (US)](https://wordpress.org/plugins/wp-bitly/) 、 [Korean](https://ko.wordpress.org/plugins/wp-bitly/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/wp-bitly/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-bitly)
 * 标签
 * [bitly](https://cn.wordpress.org/plugins/tags/bitly/)[shortener](https://cn.wordpress.org/plugins/tags/shortener/)
   [shortlink](https://cn.wordpress.org/plugins/tags/shortlink/)[url](https://cn.wordpress.org/plugins/tags/url/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-bitly/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  16 条 5 星评价     ](https://wordpress.org/support/plugin/wp-bitly/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-bitly/reviews/?filter=4)
 *  [  3 条 3 星评价     ](https://wordpress.org/support/plugin/wp-bitly/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-bitly/reviews/?filter=2)
 *  [  3 条 1 星评价     ](https://wordpress.org/support/plugin/wp-bitly/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-bitly/reviews/#new-post)

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

## 贡献者

 *   [ bitlydeveloper ](https://profiles.wordpress.org/bitlydeveloper/)
 *   [ clint.s ](https://profiles.wordpress.org/clints/)
 *   [ Muhammad Faizan Haidar ](https://profiles.wordpress.org/muhammadfaizanhaidar/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-bitly/)