WP_Locale::get_weekday_abbrev() WordPress Method

The WP_Locale::get_weekday_abbrev() method is used to get the abbreviated weekday for the given day of the week.

WP_Locale::get_weekday_abbrev( string $weekday_name ) #

Retrieves the translated weekday abbreviation.


Description

The weekday abbreviation is retrieved by the translated full weekday word.


Top ↑

Parameters

$weekday_name

(string)(Required)Full translated weekday word.


Top ↑

Return

(string) Translated weekday abbreviation.


Top ↑

Source

File: wp-includes/class-wp-locale.php

	public function get_weekday_abbrev( $weekday_name ) {
		return $this->weekday_abbrev[ $weekday_name ];
	}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.