WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Locale::get_weekday() WP 2.1.0

Retrieve the full translated weekday word.

Week starts on translated Sunday and can be fetched by using 0 (zero). So the week starts with 0 (zero) and ends on Saturday with is fetched by using 6 (six).

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

Хуков нет.

Возвращает

Строку. Full translated weekday.

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

$WP_Locale = new WP_Locale();
$var = $WP_Locale->get_weekday( $weekday_number );
$weekday_number(число) (обязательный)
0 for Sunday through 6 Saturday.

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

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

Код WP Locale::get weekday: wp-includes/class-wp-locale.php WP 5.2.4

<?php
public function get_weekday( $weekday_number ) {
	return $this->weekday[ $weekday_number ];
}