WP_Locale::get_weekday_abbrev()
Retrieves the translated weekday abbreviation.
The weekday abbreviation is retrieved by the translated full weekday word.
Method of the class: WP_Locale{}
No Hooks.
Returns
String
. Translated weekday abbreviation.
Usage
global $wp_locale; $wp_locale->get_weekday_abbrev( $weekday_name );
- $weekday_name(string) (required)
- Full translated weekday word.
Changelog
Since 2.1.0 | Introduced. |
WP_Locale::get_weekday_abbrev() WP Locale::get weekday abbrev code WP 6.8.1
public function get_weekday_abbrev( $weekday_name ) { return $this->weekday_abbrev[ $weekday_name ]; }