year_link filter-hook . WP 1.5.0
Filters the year archive permalink.
Usage
add_filter( 'year_link', 'filter_function_name_1611', 10, 2 ); function filter_function_name_1611( $yearlink, $year ){ // filter... return $yearlink; }
- $yearlink(string)
- Permalink for the year archive.
- $year(int)
- Year for the archive.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
year_link
wp-includes/link-template.php 498
return apply_filters( 'year_link', $yearlink, $year );