woocommerce_email_bcc_recipient_(id) filter-hookWC 9.8.0

Filter the Bcc recipient for the email.

Usage

add_filter( 'woocommerce_email_bcc_recipient_(id)', 'wp_kama_woocommerce_email_bcc_recipient_id_filter', 10, 3 );

/**
 * Function for `woocommerce_email_bcc_recipient_(id)` filter-hook.
 * 
 * @param string   $bcc    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.
 *
 * @return string
 */
function wp_kama_woocommerce_email_bcc_recipient_id_filter( $bcc, $object, $email ){

	// filter...
	return $bcc;
}
$bcc(string)
CC recipient.
$object(object)
The object (ie, product or order) this email relates to, if any.
$email(WC_Email)
WC_Email instance managing the email.

Changelog

Since 9.8.0 Introduced.

Where the hook is called

WC_Email::get_bcc_recipient()
woocommerce_email_bcc_recipient_(id)
woocommerce/includes/emails/class-wc-email.php 545
$bcc  = apply_filters( 'woocommerce_email_bcc_recipient_' . $this->id, $bcc, $this->object, $this );

Where the hook is used in WooCommerce

Usage not found.