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_namestringrequired
Translated month to get abbreviated version.

Return

string Translated abbreviated month.

Source

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

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.