WP_Locale::get_weekday_initial() WordPress Method
The WP_Locale::get_weekday_initial() method is used to retrieve the initial letter of a weekday for the current locale.
WP_Locale::get_weekday_initial( string $weekday_name ) #
Retrieves the translated weekday initial.
Description
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.
Parameters
- $weekday_name
(string)(Required)Full translated weekday word.
Return
(string) Translated weekday initial.
Source
File: wp-includes/class-wp-locale.php
public function get_weekday_initial( $weekday_name ) { return $this->weekday_initial[ $weekday_name ]; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |