month_link WordPress Filter Hook
In WordPress, the month_link hook is used to modify the month link created by the get_month_link() function. This hook can be useful for creating a custom link structure for your archives, or for changing the way in which months are displayed.
apply_filters( 'month_link', string $monthlink , int $year , int $month ) #
Filters the month archive permalink.
Parameters
- $monthlink
(string)Permalink for the month archive.
- $year
(int)Year for the archive.
- $month
(int)The month for the archive.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |