WP_Locale::get_weekday_initial()
Retrieves the translated weekday initial.
The weekday initial is retrieved by the translated full weekday word. When translating the weekday initial pay attention to make sure that the starting letter does not conflict.
Method of the class: WP_Locale{}
No Hooks.
Return
String
. Translated weekday initial.
Usage
global $wp_locale; $wp_locale->get_weekday_initial( $weekday_name );
- $weekday_name(string) (required)
- Full translated weekday word.
Changelog
Since 2.1.0 | Introduced. |
WP_Locale::get_weekday_initial() WP Locale::get weekday initial code WP 6.5.2
public function get_weekday_initial( $weekday_name ) { return $this->weekday_initial[ $weekday_name ]; }