woocommerce_email_recipient_(id) хук-фильтрWC 1.0

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
-

Где вызывается хук

WC_Email::get_recipient()
woocommerce_email_recipient_(id)
woocommerce/includes/emails/class-wc-email.php 432
$recipient  = apply_filters( 'woocommerce_email_recipient_' . $this->id, $this->recipient, $this->object, $this );

Где используется хук в WooCommerce

Использование не найдено.