W3cubDocs

/WordPress

WP_Locale::get_month_abbrev( string $month_name )

Retrieve 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_name

(string) (Required) Translated month to get abbreviated version.

Return

(string) Translated abbreviated month.

Source

File: wp-includes/class-wp-locale.php

public function get_month_abbrev( $month_name ) {
		return $this->month_abbrev[ $month_name ];
	}

Changelog

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_abbrev