woocommerce_allow_restoring_email_locale хук-фильтрWC 6.8.0

Filter the ability to restore email locale.

Использование

add_filter( 'woocommerce_allow_restoring_email_locale', 'wp_kama_woocommerce_allow_restoring_email_locale_filter', 10, 2 );

/**
 * Function for `woocommerce_allow_restoring_email_locale` filter-hook.
 * 
 * @param bool     $default_value The default returned value.
 * @param WC_Email $that          The WC_Email object.
 *
 * @return bool
 */
function wp_kama_woocommerce_allow_restoring_email_locale_filter( $default_value, $that ){

	// filter...
	return $default_value;
}
$default_value(true|false)
The default returned value.
$that(WC_Email)
The WC_Email object.

Список изменений

С версии 6.8.0 Введена.

Где вызывается хук

WC_Email::restore_locale()
woocommerce_allow_restoring_email_locale
woocommerce/includes/emails/class-wc-email.php 364
$restore_email_locale = apply_filters( 'woocommerce_allow_restoring_email_locale', true, $this );

Где используется хук в WooCommerce

Использование не найдено.