WP_Locale_Switcher::load_translations

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Load translations for a given locale.

Syntax

WP_Locale_Switcher::load_translations( string $locale )

DescriptionDescription

When switching to a locale, translations for this locale must be loaded from scratch.

ParametersParameters

$locale

(string) (Required) The locale to load translations for.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top