WP_Locale::get_meridiem

Advertisement

Summery Summery

Retrieve translated version of meridiem string.

Syntax Syntax

WP_Locale::get_meridiem( string $meridiem )

Description Description

The $meridiem parameter is expected to not be translated.

Parameters Parameters

$meridiem

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

Return Return

(string) Translated version

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?