WP_Locale::get_month_abbrev
Retrieves translated version of month abbreviation string.
The $month_name parameter is expected to be the translated or translatable version of the month.
Method of the class: WP_Locale{}
No Hooks.
Returns
String. Translated abbreviated month.
Usage
global $wp_locale; $wp_locale->get_month_abbrev( $month_name );
- $month_name(string) (required)
- Translated month to get abbreviated version.
Changelog
| Since 2.1.0 | Introduced. |
WP_Locale::get_month_abbrev() WP Locale::get month abbrev code WP 6.8.3
public function get_month_abbrev( $month_name ) {
return $this->month_abbrev[ $month_name ];
}