get_archives_link хук-фильтр . WP 2.6.0
Filters the archive link content.
Использование
add_filter( 'get_archives_link', 'filter_function_name_5646', 10, 7 ); function filter_function_name_5646( $link_html, $url, $text, $format, $before, $after, $selected ){ // filter... return $link_html; }
- $link_html(строка)
- The archive HTML link content.
- $url(строка)
- URL to archive.
- $text(строка)
- Archive text description.
- $format(строка)
- Link format. Can be 'link', 'option', 'html', or custom.
- $before(строка)
- Content to prepend to the description.
- $after(строка)
- Content to append to the description.
- $selected(true/false)
- True if the current page is the selected archive.
Список изменений
С версии 2.6.0 | Введена. |
С версии 4.5.0 | Added the $url, $text, $format, $before, and $after parameters. |
С версии 5.2.0 | Added the $selected parameter. |
Где вызывается хук
get_archives_link
wp-includes/general-template.php 1894
return apply_filters( 'get_archives_link', $link_html, $url, $text, $format, $before, $after, $selected );