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

Get the from name for outgoing emails.

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

add_filter( 'woocommerce_email_from_name', 'wp_kama_woocommerce_email_from_name_filter', 10, 2 );

/**
 * Function for `woocommerce_email_from_name` filter-hook.
 * 
 * @param  $from_name 
 * @param  $that      
 *
 * @return 
 */
function wp_kama_woocommerce_email_from_name_filter( $from_name, $that ){

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

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

WC_Email::get_from_name()
woocommerce_email_from_name
woocommerce/includes/emails/class-wc-email.php 657
$from_name = apply_filters( 'woocommerce_email_from_name', get_option( 'woocommerce_email_from_name' ), $this, $from_name );

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

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