WP_Locale::get_weekday

Advertisement

Summery Summery

Retrieve the full translated weekday word.

Syntax Syntax

WP_Locale::get_weekday( int $weekday_number )

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.

Return Return

(string) Full translated weekday.

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.