Filter hook 'pre_determine_locale'

in WP Core File wp-includes/l10n.php at line 133

Description

Filters the locale for the current request prior to the default determination process. Using this filter allows to override the default logic, effectively short-circuiting the function.

Occurrences

Filename Line Number
wp-includes/l10n.php 133

Parameters

Type Name Description
string|null $locale The locale to return and short-circuit. Default null.

PHP Doc

/**
	 * Filters the locale for the current request prior to the default determination process.
	 *
	 * Using this filter allows to override the default logic, effectively short-circuiting the function.
	 *
	 * @since 5.0.0
	 *
	 * @param string|null $locale The locale to return and short-circuit. Default null.
	 */