woocommerce_email_enabled_(id)
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
- -
Где вызывается хук
woocommerce_email_enabled_(id)
woocommerce/includes/emails/class-wc-email.php 547
return apply_filters( 'woocommerce_email_enabled_' . $this->id, 'yes' === $this->enabled, $this->object, $this );