the_shortlink filter-hook . WP 3.0.0
Filters the short link anchor tag for a post.
Usage
add_filter( 'the_shortlink', 'filter_function_name_3615', 10, 4 ); function filter_function_name_3615( $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
wp-includes/link-template.php 4017
$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );