Title: URL Smasher
Author: Rick Hellewell
Published: <strong>2015 年 8 月 11 日</strong>
Last modified: 2024 年 4 月 10 日

---

搜索插件

![](https://ps.w.org/url-smasher/assets/banner-772x250.png?rev=2732190)

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

![](https://ps.w.org/url-smasher/assets/icon-256x256.png?rev=2728181)

# URL Smasher

 作者：[Rick Hellewell](https://profiles.wordpress.org/rhellewellgmailcom/)

[下载](https://downloads.wordpress.org/plugin/url-smasher.zip)

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

 [支持](https://wordpress.org/support/plugin/url-smasher/)

## 描述

Automatically – and without any effort on your part – shortens URLs in posts, pages,
and comments using goo.gl. Does not require any special shortcodes, buttons, or 
anything – just enable it, and URLs are smashed when the post/page/comment is saved.
Just use your Google API Key (it’s free) and off you go!

## 屏幕截图

[⌊Shows information about the plugin on the Settings screen. (assets/screenshot-
1.jpg)⌉⌊Shows information about the plugin on the Settings screen. (assets/screenshot-
1.jpg)⌉[

Shows information about the plugin on the Settings screen. (assets/screenshot-1.
jpg)

[⌊Shows the Settings area. You enter the Bitly Generic Access Token, and enable '
URL Smashing' for post/pages and/or comments content.  (assets/screenshot-2.jpg)⌉⌊
Shows the Settings area. You enter the Bitly Generic Access Token, and enable 'URL
Smashing' for post/pages and/or comments content.  (assets/screenshot-2.jpg)⌉[

Shows the Settings area. You enter the Bitly Generic Access Token, and enable ‘URL
Smashing’ for post/pages and/or comments content. (assets/screenshot-2.jpg)

## 安装

This section describes how to install the plugin and get it working.

 1. Download the zip file, uncompress, then upload to `/wp-content/plugins/` directory.
    Or download, then upload/install via the Add Plugin page.
 2. 通过WordPress的“插件”菜单激活插件。
 3. Change settings in Settings, ‘URL Smasher Settings’ to your requirements.

 * Note: do a “Save” on the URL Smasher settings page once after an upgrade to ensure
   all is well; your settings will be preserved.

## 常见问题

### Do I have to do anything special to enable this?

You need to have your own Google API key (they are free, unless you have an extremely
active site), and set up the two options on the Settings page.

Get API key from : http://code.google.com/apis/console/

### What settings are available?

Just three: your Google API Key, and checkboxes to enable URL Smashing for posts/
pages or comments.

### What if the URLs aren’t smashed?

That is usually caused by an invalid Google API Key. Or, you have done too many 
URL Smashes in one day. Check your Google API account for details. Sometimes it’s
because you didn’t specify the full URL, including the “http(s)://” part – ‘relative’
URLs are not smashed.

If the URL Smash fails for some reasosn, the URL is not changed.

### What if I don’t like how the plugin changes things or there is a problem?

You can just deactivate the plugin. Your settings will be saved if you want to reactivate
later.

### Does the plugin make changes to the database?

The plugin only adds one ‘row’ to the Options database, using standard WordPress
functions. The plugin will read the values as needed, minimizing calls to the database
to limit any overhead against the database.

### Does the plugin require anything extra on the client (visitor) browser?

Not that we are aware of. The things we do are done through standard WordPress calls.
It works with the standard ‘jQuery’ code that WordPress already includes and uses.

### Where can we go for support if there is a problem or question – or a new feature we think will be nifty?

You can use the plugin support page for questions. Or you can contact us directly
via the Contact Us page at www.CellarWeb.com . We usually respond within 24 hours(
and are usually faster than that).

### How much does the plugin cost?

It’s free! But there is a place to donate at www.CellarWeb.com, if you are so inclined.(
And we will appreciate that inclination!)

### What else do you do?

We have a plugin that stops comment spam in it’s tracks. Plus a contact template
that does the same thing. Our process doesn’t rely on things that don’t work, like
hidden fields, or hard to use Captcha things. You’ll find all the details at our
FormSpammerTrap site: http://www.FormSpammerTrap.com .

We do lots of WordPress sites: implementation, customization, and more. You can 
find more info at our business site at www.CellarWeb.com .

## 评价

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

### 󠀁[Best Shorten Url Plugin!](https://wordpress.org/support/topic/best-shorten-url-plugin/)󠁿

 [jktlaugh](https://profiles.wordpress.org/jktlaugh/) 2016 年 12 月 28 日

It’s a must download tool for an affiliate!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/url-smasher/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Rick Hellewell ](https://profiles.wordpress.org/rhellewellgmailcom/)

[帮助将「URL Smasher」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/url-smasher)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.10 (10 Jun 2022)

 * fix for warning message caused if a settings variable not set yet.

#### 3.00 (26 May 2022)

 * updated for bit.ly API version 4. This requires you to get a new bit.ly Generic
   Access Code; instructions on the Settings page.
 * updated for up to PHP version 8.
 * updated/tested for latest WP versions.
 * changed functions and variables names for consistancy .
 * added sidebar for our other plugins.
 * changed logo/header/etc for current branding.
 * visual and text changes to settings screen and screenshot .
 * updated screenshots and other images in assets folder.
 * code efficiencies.

#### 2.01 (27 Jan 2017)

 * added button to test for a valid Bit.ly API Key (hopefully, it is your key).
 * verified for WordPress 4.7.2
 * moved version number to header on the Settings page.
 * removed version number from being stored in the options table.
 * fix to the date of version 1.06 in the readme (year was wrong).
 * minor changes to the information/text on the Settings screen.

#### 1.06 (27 Dec 2016)

 * fix to set options on the first install, rather than uncermoniously just dying.
 * minor code change to how the version number is changed
 * changed the header image/info the settings page

#### 1.05 (2-Aug-2016)

 * code changes to ensure ‘safe’ URLs (reduce XSS vulnerability)
 * other minor code efficiencies
 * minor changes to readme file and the Settings page area

#### 1.04

 * Don’t you hate it when a bug creeps in after you do all the testing and then 
   release a revision and then things don’t work right. Yeah, me too. (sigh)
 * Fixed a bug where not all post content would be affiliated. And then tested everything
   again.

#### 1.03

 * released 15 Dec 2015
 * tested for WordPress version 4.4
 * some code efficiencies, adjusted variables for unique names
 * minor visual changes to the settings screen
 * minor adjustments to text of settings screen
 * tested to ensure proper behavoir with other plugins (like our – shameless plug–“
   AmazoLinkenator” – which automatically adds your Amazon Affiliate code to Amazon
   URLs)

#### 1.02

 * released 31 Aug 2015
 * adjusted URL Smasher’s process priority to allow other URL-adjusting plugins 
   to do their work first. For instance, if another plugin is adding an affiliate
   code to links on content save (shameless plug: like the “AmazoLinkenator” plugin
   we have), then that process should be allowed to finish before URL Smasher does
   its thing. Otherwise, URL Smasher’s work may cause the other plugin not to ‘see’
   the URL. URL Smasher now has a lower priority of ’99’, rather than the normal’
   10’.
 * removed version-checking code; it needs to be more efficiently done in a later
   version.

#### 1.01b

 * released 24 Aug 2015
 * code efficiencies
 * corrected “Invalid Header” activation error

#### 1.01a

 * released 22 Aug 2015
 * fixed formatting errors in the readme.txt file.
 * updated the screenshot .
 * changed the icon/graphic on the settings page

#### 1.01

 * Tested and Certified for WordPress 4.3 (21 Aug 2015)
 * Changed top graphic for Settings page
 * Added icon for WordPress plugin page

#### 1.00

 * Initial release (10 Aug 2015)

## 额外信息

 *  版本 **3.10**
 *  最后更新：**2 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0.1 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/url-smasher/)
 *  [高级视图](https://cn.wordpress.org/plugins/url-smasher/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Rick Hellewell ](https://profiles.wordpress.org/rhellewellgmailcom/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://cellarweb.com/wordpress-plugins/)