woocommerce_email_enabled_(id) хук-фильтрWC 1.0

Checks if this email is enabled and will be sent.

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

add_filter( 'woocommerce_email_enabled_(id)', 'wp_kama_woocommerce_email_enabled_id_filter', 10, 3 );

/**
 * Function for `woocommerce_email_enabled_(id)` filter-hook.
 * 
 * @param  $string 
 * @param  $object 
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_email_enabled_id_filter( $string, $object, $that ){

	// filter...
	return $string;
}
$string
-
$object
-
$that
-

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

WC_Email::is_enabled()
woocommerce_email_enabled_(id)
woocommerce/includes/emails/class-wc-email.php 533
return apply_filters( 'woocommerce_email_enabled_' . $this->id, 'yes' === $this->enabled, $this->object, $this );

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

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