W3cubDocs

/WordPress

apply_filters( ‘year_link’, string $yearlink, int $year )

Filters the year archive permalink.

Parameters

$yearlinkstring
Permalink for the year archive.
$yearint
Year for the archive.

Source

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

Changelog

Version Description
1.5.0 Introduced.

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