woocommerce_email_from_address хук-фильтрWC 1.0

Get the from address for outgoing emails.

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

add_filter( 'woocommerce_email_from_address', 'wp_kama_woocommerce_email_from_address_filter', 10, 2 );

/**
 * Function for `woocommerce_email_from_address` filter-hook.
 * 
 * @param  $from_email 
 * @param  $that       
 *
 * @return 
 */
function wp_kama_woocommerce_email_from_address_filter( $from_email, $that ){

	// filter...
	return $from_email;
}
$from_email
-
$that
-

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

WC_Email::get_from_address()
woocommerce_email_from_address
woocommerce/includes/emails/class-wc-email.php 668
$from_email = apply_filters( 'woocommerce_email_from_address', get_option( 'woocommerce_email_from_address' ), $this, $from_email );

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

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