Title: WP_Locale::get_weekday_abbrev
Published: April 25, 2014
Last modified: August 20, 2026

---

# WP_Locale::get_weekday_abbrev( string $weekday_name ): string

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#wp--skip-link--target)

Retrieves the translated weekday abbreviation.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#parameters)󠁿

 `$weekday_name`stringrequired

Full translated weekday word.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#return)󠁿

 string Translated weekday abbreviation.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-locale.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-locale.php#L300)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-locale.php#L300-L302)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_date()](https://developer.wordpress.org/reference/functions/wp_date/)`wp-includes/functions.php` |

Retrieves the date, in localized format.

  | 
| [get_calendar()](https://developer.wordpress.org/reference/functions/get_calendar/)`wp-includes/general-template.php` |

Displays calendar with days that have posts as links.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_abbrev/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_locale%2Fget_weekday_abbrev%2F)
before being able to contribute a note or feedback.