Note: This post refers to code and a project from many years ago 😱. The content was edited in March of 2025 to remove dead links, improve clarity, or fix formatting, but no other edits were made. Enjoy this time capsule into the past.
UPDATE: Thanks to Ozh’s Comments I have updated the post below. It sounds like the plugin will be updated for WP 3.0. However, it will then stop working with WP 2.9 and below. I am leaving this page up for those of you who wish to use an older version of WP but would still recommend updating to a newer release when one becomes available.
I’ve been using YOURLS to host my own shortlink site for quite some time. I recently found the YOURL’s WordPress to Twitter Plugin. This plugin is great however the, get_shortlink
function added to WP 3.0 as well as the latest version of WordPress.com Stats plugin caused some small usability issues. Such as the “Get Shortlink” button showing up twice.
My solution? Make it so when you click on the “Get Shortlink” button it gets the YOURLS shorlink instead of the wp.me one. This required the following changes that I’m hoping OZH will adopt or modify.
Continue reading →