apply_filters( 'pre_determine_locale', string|null )

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

(string|null) The locale to return and short-circuit, or null as default.


Top ↑

Source

File: wp-includes/l10n.php

View on Trac


Top ↑

Changelog

Version Description
5.0.0 Introduced.