woocommerce_email_from_name
Get the from name for outgoing emails.
Usage
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
- -
Where the hook is called
woocommerce_email_from_name
woocommerce/includes/emails/class-wc-email.php 708
$from_name = apply_filters( 'woocommerce_email_from_name', get_option( 'woocommerce_email_from_name' ), $this, $from_name );