Core Function
View Source on Trac ↗ get_month_link()
get_month_link( mixed $year, mixed $month ) Retrieves the permalink for the month archives with year.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | false) $year Integer of year. False for current year. Required |
| (int | | false) $month Integer of month. False for current month. Required |
Return Value
(string)
The permalink for the specified month and year archive.
Function Information
Since Version
1.0.0
Source File
wp-includes/link-template.php
Advertisement