woocommerce_email_recipient_(id)
Get valid recipients.
Использование
add_filter( 'woocommerce_email_recipient_(id)', 'wp_kama_woocommerce_email_recipient_id_filter', 10, 3 ); /** * Function for `woocommerce_email_recipient_(id)` filter-hook. * * @param $recipient * @param $object * @param $that * * @return */ function wp_kama_woocommerce_email_recipient_id_filter( $recipient, $object, $that ){ // filter... return $recipient; }
- $recipient
- -
- $object
- -
- $that
- -
Где вызывается хук
woocommerce_email_recipient_(id)
woocommerce/includes/emails/class-wc-email.php 446
$recipient = apply_filters( 'woocommerce_email_recipient_' . $this->id, $this->recipient, $this->object, $this );