woocommerce_email_recipient_backorder filter-hookWC 3.0.0

Filter the recipient of the backorder notification email.

Usage

add_filter( 'woocommerce_email_recipient_backorder', 'wp_kama_woocommerce_email_recipient_backorder_filter', 10, 3 );

/**
 * Function for `woocommerce_email_recipient_backorder` filter-hook.
 * 
 * @param string $recipient The recipient email address.
 * @param array  $args      Arguments.
 * @param null   $null      Unused.
 *
 * @return string
 */
function wp_kama_woocommerce_email_recipient_backorder_filter( $recipient, $args, $null ){

	// filter...
	return $recipient;
}
$recipient(string)
The recipient email address.
$args(array)
Arguments.
$null(null)
Unused.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WC_Emails::backorder()
woocommerce_email_recipient_backorder
woocommerce/includes/class-wc-emails.php 1214
apply_filters( 'woocommerce_email_recipient_backorder', get_option( 'woocommerce_stock_email_recipient' ), $args, null ),

Where the hook is used in WooCommerce

Usage not found.