Title: WP_Locale::get_weekday_initial
Published: April 25, 2014
Last modified: May 20, 2026

---

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

## In this article

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

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

Retrieves the translated weekday initial.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_initial/?output_format=md#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](https://developer.wordpress.org/reference/classes/wp_locale/get_weekday_initial/?output_format=md#parameters)󠁿

 `$weekday_name`stringrequired

Full translated weekday word.

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

 string Translated weekday initial.

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

    ```php
    public function get_weekday_initial( $weekday_name ) {
    	return $this->weekday_initial[ $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.0/src/wp-includes/class-wp-locale.php#L285)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-locale.php#L285-L287)

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

| Used by | Description | 
| [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_initial/?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_initial%2F)
before being able to contribute a note or feedback.