apply_filters( ‘pre_determine_locale’, string|null $locale )

In this article

Filters the locale for the current request prior to the default determination process.

Description

Using this filter allows to override the default logic, effectively short-circuiting the function.

Parameters

$localestring|null
The locale to return and short-circuit. Default null.

Source

$determined_locale = apply_filters( 'pre_determine_locale', null );

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.