WP_Locale_Switcher::filter_locale

SummerySummery

Filters the locale of the WordPress installation.

Syntax

WP_Locale_Switcher::filter_locale( string $locale )

ParametersParameters

$locale

(string) (Required) The locale of the WordPress installation.

ReturnReturn

(string) The locale currently being switched to.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top