WordPress at a glance
filter is not described

pre_determine_locale filter-hook . WP 5.0.0

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.


add_filter( 'pre_determine_locale', 'filter_function_name_4866' );
function filter_function_name_4866( $null ){
	// filter...

	return $null;
The locale to return and short-circuit, or null as default.

Where the hook is called

wp-includes/l10n.php 126
$determined_locale = apply_filters( 'pre_determine_locale', null );

Where the hook is used (in WP core)

Использование не найдено.