WP_Locale::get_weekday_abbrev

Advertisement

Summery Summery

Retrieve the translated weekday abbreviation.

Syntax Syntax

WP_Locale::get_weekday_abbrev( string $weekday_name )

Description Description

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

Parameters Parameters

$weekday_name

(string) (Required) Full translated weekday word.

Return Return

(string) Translated weekday abbreviation.

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.