WP_Locale::get_weekday_initial()publicWP 2.1.0

Retrieves the translated weekday initial.

The weekday initial is retrieved by the translated full weekday word. When translating the weekday initial pay attention to make sure that the starting letter does not conflict.

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

Хуков нет.

Возвращает

Строку. Translated weekday initial.

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

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

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

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

Код WP_Locale::get_weekday_initial() WP 6.5.2

public function get_weekday_initial( $weekday_name ) {
	return $this->weekday_initial[ $weekday_name ];
}