Plugin for Wordpress and ClassicPress to follow shortened links (,, etc) and expand them so that your blog post will point directly to the destination.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kelson Vibber 5b185cc91c Merge branch 'cp-new-dir-headers' 4 weeks ago
.gitignore Fix bugs with and URLs inside HTML links, bump to 0.2.3 4 months ago
LICENSE First commit, cleanup of most recent local version 8 months ago
linkchain.txt update Readme and bump version to 0.3.0 3 months ago update zip packager to keep the markdown version of the readme and leave out the linkchain testing info 4 weeks ago update changelog with 0.3.1 4 weeks ago
unwrap-shortlinks.php update headers for new ClassicPress directory 4 weeks ago

Unwrap Shortlinks

Stable tag: 0.3.1 Tags: urls, links, classicpress
Requires at least: 3.0
Tested up to: 6.0
Requires PHP: 7.0
Contributors: Kelson
License: GPLv2 or later
License URI: For ClassicPress
Requires: 1.0
Tested: 1.4.1

Follows shortened links (,, etc) and expands them so that your blog post will point directly to the destination.


Automatically expands URLs at the following known link shorteners when you save a post:



Install the plugin and activate it. The next time you paste a supported short URL into a post, it will be updated when the post is saved.

Frequently Asked Questions

If the destination is another known URL shortener (ex. pointing to pointing to pointing to a blog post), it'll keep going up to 5 levels (to avoid infinite loops!) or until it gets a URL that isn't on the list.

How do I add a shortener to the list?

It's not supported yet, but I plan on adding an options page for it.

I'm running on a local server and this doesn't do anything!

Most likely your system is configured to block your local webserver from making outgoing connections. This is a sensible default for security! Depending on your system, it may be blocked by a local or network firewall. If you're running Fedora Workstation with SELinux (like I am), this will enable it:

sudo setsebool -P httpd_can_network_connect true

Thanks to igienger's post on the WordPress support forums!

What about compatibility?

It should work going back to the classic editor and forward to the block editor. It even works on ClassicPress.


[0.3.1] - 2022-09-01

  • Update headers for new ClassicPress plugin directory. No changes affecting WordPress

[0.3.0] - 2022-06-23

  • Follow link trails, add

[0.2.4] - 2022-06-13

  • Fix bugs with plaintext URLs at the end of a block.

[0.2.3] - 2022-06-10

  • Fix bugs with and URLs inside HTML links. (Plaintext URLs were working fine.)

[0.2.2] - 2022-01-29

  • Initial release based on the code I've been running locally for years, plus changes requested by the WordPress plugin review team.

Source on Codeberg.
Plugin page at WordPress.
Plugin page at ClassicPress.

(c) 2016-2022 Kelson Vibber