WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_determine_locale

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/l10n.php apply_filters 133 /**
* 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.
*/

Hook Parameters

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