plugin_locale, determine_locale(
plugin_locale, determine_locale(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('plugin_locale, determine_locale(') is found 1 times:
- /includes/class-woocommerce.php line 1050
public function load_plugin_textdomain() { /** * Filter to adjust the WooCommerce locale to use for translations. */ $locale = apply_filters( 'plugin_locale', determine_locale(), 'woocommerce' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment $custom_translation_path = WP_LANG_DIR . '/woocommerce/woocommerce-' . $locale . '.mo'; $plugin_translation_path = WP_LANG_DIR . '/plugins/woocommerce-' . $locale . '.mo'; // If a custom translation exists (by default it will not, as it is not a standard WordPress convention) // we unload the existing translation, then essentially layer the custom translation on top of the canonical // translation. Otherwise, we simply step back and let WP manage things.