WordPress Tutorials 1 min read

How to Remove Shortlink in WordPress

Published by Manuel Campos on September 24, 2022 • Updated on October 22, 2024

In WordPress, a shortlink is a shortened version of a full URL for a post or page. Shortlinks are useful because they provide a cleaner, more concise URL that’s easier to share on social media, emails, or other places where character count matters.

If you want to remove shortlinks from appearing in WordPress, such as in the front-end meta tags, you can do this by using a code snippet.

remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
Manuel Campos

Manuel Campos

I'm a WordPress enthusiast. I document my journey and provide actionable insights to help you navigate the ever-evolving world of WordPress."

Read Next

Support Honest Reviews

Help keep the reviews coming by using my recommended links.

May earn commission • No extra cost to you