WP_Locale::get_weekday_abbrev()publicWP 2.1.0

Retrieves the translated weekday abbreviation.

The weekday abbreviation is retrieved by the translated full weekday word.

{} Это метод класса: WP_Locale{}

Хуков нет.

Возвращает

Строку. Translated weekday abbreviation.

Использование

global $wp_locale;
$wp_locale->get_weekday_abbrev( $weekday_name );
$weekday_name(строка) (обязательный)
Full translated weekday word.

Список изменений

С версии 2.1.0 Введена.

Код WP_Locale::get_weekday_abbrev() WP 6.0.2

public function get_weekday_abbrev( $weekday_name ) {
	return $this->weekday_abbrev[ $weekday_name ];
}