month_link filter-hook . WP 1.5.0
Filters the month archive permalink.
Usage
add_filter( 'month_link', 'filter_function_name_8288', 10, 3 ); function filter_function_name_8288( $monthlink, $year, $month ){ // filter... return $monthlink; }
- $monthlink(string)
- Permalink for the month archive.
- $year(int)
- Year for the archive.
- $month(int)
- The month for the archive.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
month_link
wp-includes/link-template.php 538
return apply_filters( 'month_link', $monthlink, $year, $month );