How To Enable Shortlinks In WordPress

How To Enable Shortlinks In WordPress

Author: WP Sites

Date: June 30, 2020 

Category: Theme development, Tips and tricks, Tutorials

(advertorial)

wprssaggregator How To Enable Shortlinks In WordPress

By default, the Get Shortlinks button next to your permalink URL on the Edit Post/Page screen is hidden.

get_shortlink WordPress

You can enable it by adding this PHP code to the end of your child themes functions file or better still, a must use plugin.

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

Another option if its already shown, is to change the domain using code like this :

add_filter( ‘get_shortlink’, ‘change_get_shortlink’ ); function change_get_shortlink( $shortlink

This is the first part of the original article by WP Sites.
Click here to read the full article in a new tab!

(advertorial)

toolset logo tag line white How To Enable Shortlinks In WordPress

How To Enable Shortlinks In WordPress

World of WordPress is hosted by:

Servebolt: next level high performance hosting.

While others try to add more components to their hosting to make it go faster, we decided to build our hosting cloud fast from the ground up. We did so by stripping out everything we knew was deadweight.