wordpress / latest / hooks / year_link.html

apply_filters( 'year_link', string $yearlink, int $year )

Filters the year archive permalink.

Parameters

$yearlink string
Permalink for the year archive.
$year int
Year for the archive.

Source

File: wp-includes/link-template.php. View all references

return apply_filters( 'year_link', $yearlink, $year );

Used By

Used By Description

Changelog

Version Description
1.5.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/year_link