the_shortlink WordPress Filter Hook

The Shortlink Wordpress hook is a great way to manage your links and improve your SEO. It allows you to add a shortlink to your posts and pages, which can be used to improve your link popularity and help your pages rank higher in search engines.

apply_filters( 'the_shortlink', string $link, string $shortlink, string $text, string $title ) #

Filters the short link anchor tag for a post.


Parameters

$link

(string)Shortlink anchor tag.

$shortlink

(string)Shortlink URL.

$text

(string)Shortlink's text.

$title

(string)Shortlink's title attribute.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More