year_link WordPress Filter Hook
The year_link hook is used to create a link to a year archive. It is used to generate the URL for a year archive.
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
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |