WP_Locale::get_weekday()publicWP 2.1.0

Retrieves 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).

Method of the class: WP_Locale{}

No Hooks.


String. Full translated weekday.


global $wp_locale;
$wp_locale->get_weekday( $weekday_number );
$weekday_number(int) (required)
0 for Sunday through 6 Saturday.


Since 2.1.0 Introduced.

WP_Locale::get_weekday() code WP 6.5.3

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