locale

locale

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('locale') is found 2 times:

  • /wp-includes/l10n.php line 35
    	global $locale, $wp_local_package;
    
    	if ( isset( $locale ) ) {
    		/** This filter is documented in wp-includes/l10n.php */
    		return apply_filters( 'locale', $locale );
    	}
    
    	if ( isset( $wp_local_package ) ) {
    		$locale = $wp_local_package;
    	}
    
    
  • /wp-includes/l10n.php line 80
    	 * @since 1.5.0
    	 *
    	 * @param string $locale The locale ID.
    	 */
    	return apply_filters( 'locale', $locale );
    }
    
    /**
     * Retrieves the locale of a user.
     *
     * If the user has a locale set to a non-empty string then it will be
    

See this hook used in plugins: