How to Restore the Get Shortlink Button in WordPress 4.4

Among the many changes in WordPress 4.4 in an effort to clean the interface, the Get Shortlink button is hidden from view. If you want to restore the button, check out the Shorter Links plugin developed by Rob Allen.

In addition to restoring the Get Shortlink button, it gives users the ability to use custom text that overrides the default URL.

Shorter Links Settings
Shorter Links Settings

If all you need is the button without additional functionality, the Bring Back The Get Shortlink Button plugin by Thorsten Frommen, is a great alternative with a descriptive name. To restore the button without using a plugin, add the following code to your theme’s functions.php file.

add_filter( 'get_shortlink', function( $shortlink ) {return $shortlink;} );

Get Shortlink is a good example of WordPress hiding functionality without removing it. This allows developers to create plugins like those mentioned above to cater to users who rely on the button’s existence.

22 Comments


  1. call me slow but i really don’t understand how adding the button back actually provides any additional functionality. As far as i can tell it just adds an extra click.

    Also not sure how the custom text is different from the edit button.

    Report


  2. I am confused. Why do we need to get the button back if the original reason of removing the button was to clean the interface?

    Report


    1. Because some people want the button back. Can’t please everyone and I noticed a few people wondering where it went after the release of 4.4.

      Report


  3. A good reason to have the short link available is when manually creating eBlasts (where a long link sometimes won’t work, and isn’t needed for SEO purposes).

    Thank you for posting on how to return it simply through a function aadd_filter. Greatly appreciated! ;-)

    Report


  4. I would prefer to have kept the Shortlink button.

    I don’t want the additional clutter of more plugins. Nor do I want to lift the hood and insert code. Granted, it isn’t that much.

    Perhaps we could have options as to which features are visible and available?

    Report


  5. Having the default shortlink is basically useless. If you use a shortlink plugin, that generates actual shortlinks, then the shortlink button comes back all by itself, magically. Perfect solution as is.

    Report


    1. I don’t think its useless.
      I use it when sharing my post to twitter (manually).

      Report


      1. Agreed, the Shortlink button isn’t useless. As you’ve mentioned, we can use it for manually creating links for uses in other media.

        Report


      2. i think what he’s saying is that any shortlink button is actually unaffected by this change, only the get link button was removed as is useless simply because the full link is clickable and therefore copiable.

        Report


      3. oh sorry i just realized that shortlink button is the default one which exists already without a plugin.

        Report


      4. Twitter automatically shortens all links now. Using the default shortlink in WordPress helps you not at all for Twitter. You can post urls of any length there.

        Report


  6. Hm, doesn’t work for me. Neither the plugin nor the code for the functions.php file. :/

    Report


    1. Ah, my fault. The button is not showing for drafts, which makes sense. My bad, code is working fine!

      Report


    1. I’ve tried adding this plugin and get a fatal error when I do.

      Report


      1. Hi Heidi. Can you post some information (exact error, WP version, etc) over on the WordPress.org forum for the plugin and we’ll take a look at it? Thanks.

        Report


  7. I didn’t realize it was missing until a client asked me to put it back haha. Thanks, very helpful!

    Report


  8. Now, if only wp_links table will un-restore itself ;)

    Report

Comments are closed.