W3cubDocs

/WordPress

apply_filters( ‘the_shortlink’, string $link, string $shortlink, string $text, string $title )

Filters the short link anchor tag for a post.

Parameters

$linkstring
Shortlink anchor tag.
$shortlinkstring
Shortlink URL.
$textstring
Shortlink’s text.
$titlestring
Shortlink’s title attribute.

Source

$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );

Changelog

Version Description
3.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_shortlink