WC_Email::get_from_name()
Get the from name for outgoing emails.
Method of the class: WC_Email{}
Hooks from the method
Return
String
.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_from_name( $from_name );
- $from_name(string)
- Default wp_mail() name associated with the "from" email address.
Default: ''
WC_Email::get_from_name() WC Email::get from name code WC 9.8.2
public function get_from_name( $from_name = '' ) { $from_name = apply_filters( 'woocommerce_email_from_name', get_option( 'woocommerce_email_from_name' ), $this, $from_name ); return wp_specialchars_decode( esc_html( $from_name ), ENT_QUOTES ); }