WP_Locale::get_weekday_initial( string $weekday_name ): string

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_namestringrequired
Full translated weekday word.

Return

string Translated weekday initial.

Source

public function get_weekday_initial( $weekday_name ) {
	return $this->weekday_initial[ $weekday_name ];
}

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.