On this page
WP_Locale::get_weekday_abbrev( string $weekday_name ): string
Retrieves the translated weekday abbreviation.
Description
The weekday abbreviation is retrieved by the translated full weekday word.
Parameters
$weekday_namestring Required-
Full translated weekday word.
Return
string Translated weekday abbreviation.
Source
File: wp-includes/class-wp-locale.php. View all references
public function get_weekday_abbrev( $weekday_name ) {
return $this->weekday_abbrev[ $weekday_name ];
}
Related
Used By
| Used By | Description |
|---|---|
| wp_date() wp-includes/functions.php | Retrieves the date, in localized format. |
| get_calendar() wp-includes/general-template.php | Displays calendar with days that have posts as links. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev