WP_Locale::get_weekday( int $weekday_number )

Retrieve the full translated weekday word.


Description Description

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


Parameters Parameters

$weekday_number

(int) (Required) 0 for Sunday through 6 Saturday.


Top ↑

Return Return

(string) Full translated weekday.


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.