Bitly's WordPress Plugin

Mô tả

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

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.

Ảnh màn hình

Cài đặt

Installing the plugin

You must have a Bitly account to connect to. You can create one at 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.0

Hỏi đáp

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

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

Đánh giá

5 Tháng Chín, 2021
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..
21 Tháng Sáu, 2021
It's taken me a while to understand the "generate short link" command does replace the plain vanilla short-link. Well done Bitly, glad to see you and my vanity url back in the console.
7 Tháng Hai, 2018
Had problems with the plugin at first, but was able to contact the company and get it all fixed. Thanks so much!
Đọc tất cả 20 đánh giá

Người đóng góp & Lập trình viên

“Bitly's WordPress Plugin” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Bitly's WordPress Plugin” đã được dịch qua 3 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Bitly's WordPress Plugin” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi


  • Completely rebuilt for use with Bitly API version 4.


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


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


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


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


  • Updated for use with WordPress 4.9.2 and current Bitly Oauth


  • Fixed a typo in wpbitly_shortlink


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


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


  • 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)


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


  • Updated for WordPress 3.8.1
  • Updated Bitly API to V3


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


  • 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.


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


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


  • Initial release of WP Bitly