woocommerce_email_reply_to_enabled │ хук-фильтр │ WC 10.4.0

Filter whether reply-to is enabled for emails.

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

add_filter( 'woocommerce_email_reply_to_enabled', 'wp_kama_woocommerce_email_reply_to_enabled_filter', 10, 2 );

/**
 * Function for `woocommerce_email_reply_to_enabled` filter-hook.
 * 
 * @param bool     $enabled Whether reply-to is enabled.
 * @param WC_Email $email   WC_Email instance managing the email.
 *
 * @return bool
 */
function wp_kama_woocommerce_email_reply_to_enabled_filter( $enabled, $email ){
	// filter...
	return $enabled;
}
$enabled(true|false)
Whether reply-to is enabled.
$email(WC_Email)
WC_Email instance managing the email.

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

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

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

WC_Email::get_reply_to_enabled()
woocommerce_email_reply_to_enabled
woocommerce/includes/emails/class-wc-email.php 1115
$enabled = apply_filters( 'woocommerce_email_reply_to_enabled', 'yes' === get_option( 'woocommerce_email_reply_to_enabled', 'no' ), $this );

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

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