the_shortlink хук-фильтр . WP 3.0.0
Filters the short link anchor tag for a post.
Использование
add_filter( 'the_shortlink', 'filter_function_name_9181', 10, 4 ); function filter_function_name_9181( $link, $shortlink, $text, $title ){ // filter... return $link; }
- $link(строка)
- Shortlink anchor tag.
- $shortlink(строка)
- Shortlink URL.
- $text(строка)
- Shortlink's text.
- $title(строка)
- Shortlink's title attribute.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
the_shortlink
wp-includes/link-template.php 4017
$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );