W3cubDocs

/WordPress

WP_Locale::get_meridiem( string $meridiem )

Retrieve translated version of meridiem string.

Description

The $meridiem parameter is expected to not be translated.

Parameters

$meridiem

(string) (Required) Either 'am', 'pm', 'AM', or 'PM'. Not translated version.

Return

(string) Translated version

Source

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

public function get_meridiem( $meridiem ) {
		return $this->meridiem[ $meridiem ];
	}

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_meridiem