woocommerce_email_cc_recipient_ . $this->id, $this->cc, $this->object, $this
woocommerce_email_cc_recipient_ . $this->id, $this->cc, $this->object, $this
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_email_cc_recipient_ . $this->id, $this->cc, $this->object, $this') is found 1 times:
- /includes/emails/class-wc-email.php line 651
* @param string $cc Cc recipient. * @param object $object The object (ie, product or order) this email relates to, if any. * @param WC_Email $email WC_Email instance managing the email. */ $cc = apply_filters( 'woocommerce_email_cc_recipient_' . $this->id, $this->cc, $this->object, $this ); $ccs = array_map( 'trim', explode( ',', $cc ?? '' ) ); $ccs = array_filter( $ccs, 'is_email' ); $ccs = array_map( 'sanitize_email', $ccs ); return implode( ', ', $ccs ); }