the_shortlink filter-hookWP 3.0.0

Filters the short link anchor tag for a post.

Usage

add_filter( 'the_shortlink', 'wp_kama_the_shortlink_filter', 10, 4 );

/**
 * Function for `the_shortlink` filter-hook.
 * 
 * @param string $link      Shortlink anchor tag.
 * @param string $shortlink Shortlink URL.
 * @param string $text      Shortlink's text.
 * @param string $title     Shortlink's title attribute.
 *
 * @return string
 */
function wp_kama_the_shortlink_filter( $link, $shortlink, $text, $title ){

	// filter...
	return $link;
}
$link(string)
Shortlink anchor tag.
$shortlink(string)
Shortlink URL.
$text(string)
Shortlink's text.
$title(string)
Shortlink's title attribute.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

the_shortlink()
the_shortlink
wp-includes/link-template.php 4133
$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );

Where the hook is used in WordPress

Usage not found.