locale

locale

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('locale') is found 2 times:

  • /wp-includes/l10n.php line 35
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    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
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
         * @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: