On this page
WP_Locale::get_month_abbrev( string $month_name ): string
Retrieves translated version of month abbreviation string.
Description
The $month_name parameter is expected to be the translated or translatable version of the month.
Parameters
$month_namestring Required-
Translated month to get abbreviated version.
Return
string Translated abbreviated month.
Source
File: wp-includes/class-wp-locale.php. View all references
public function get_month_abbrev( $month_name ) {
return $this->month_abbrev[ $month_name ];
}
Related
Used By
| Used By | Description |
|---|---|
| wp_date() wp-includes/functions.php | Retrieves the date, in localized format. |
| WP_Customize_Date_Time_Control::get_month_choices() wp-includes/customize/class-wp-customize-date-time-control.php | Generate options for the month Select. |
| touch_time() wp-admin/includes/template.php | Prints out HTML form date elements for editing post or comment publish date. |
| get_calendar() wp-includes/general-template.php | Displays calendar with days that have posts as links. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/get_month_abbrev