woocommerce_email_enabled_(id)
Checks if this email is enabled and will be sent.
Usage
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
- -
Where the hook is called
woocommerce_email_enabled_(id)
woocommerce/includes/emails/class-wc-email.php 820
return apply_filters( 'woocommerce_email_enabled_' . $this->id, 'yes' === $this->enabled, $this->object, $this );