pre_determine_locale

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'pre_determine_locale', string|null $locale )

Description Description

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

Parameters Parameters

$locale

The locale to return and short-circuit. Default null.

Source Source

File: wp-includes/l10n.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply