Uses
Uses | Description |
---|---|
wp-includes/formatting.php: zeroise() | Add leading zeros when necessary. |
Retrieve the full translated month by month number.
The $month_number parameter has to be a string because it must have the ‘0’ in front of any number that is less than 10. Starts from ’01’ and ends at ’12’.
You can use an integer instead and it will add the ‘0’ before the numbers less than 10 for you.
(string|int) (Required) '01' through '12'.
(string) Translated full month name.
File: wp-includes/class-wp-locale.php
public function get_month( $month_number ) { return $this->month[ zeroise( $month_number, 2 ) ]; }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/get_month