theme_locale

theme_locale

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.6.2

apply_filters('theme_locale') is found 1 times:

  • /wp-includes/l10n.php line 1105
    	 *
    	 * @param string $locale The theme's current locale.
    	 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
    	 */
    	$locale = apply_filters( 'theme_locale', determine_locale(), $domain );
    
    	$mofile = $domain . '-' . $locale . '.mo';
    
    	// Try to load from the languages directory first.
    	if ( load_textdomain( $domain, WP_LANG_DIR . '/themes/' . $mofile, $locale ) ) {
    		return true;