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).
$weekday_numberintrequired
public function get_weekday( $weekday_number ) {
return $this->weekday[ $weekday_number ];
}
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/get_weekday