WC_Email::get_from_name
Get the from name for outgoing emails.
Метод класса: WC_Email{}
Хуки из метода
Возвращает
Строку.
Использование
$WC_Email = new WC_Email(); $WC_Email->get_from_name( $from_name );
- $from_name(строка)
- Default wp_mail() name associated with the "from" email address.
По умолчанию:''
Код WC_Email::get_from_name() WC Email::get from name WC 11.0.0
public function get_from_name( $from_name = '' ) {
$default = get_bloginfo( 'name', 'display' );
/**
* Filters the "from" name for outgoing emails.
*
* @since 2.1.0
*
* @param string|mixed $from_name The from name.
* @param WC_Email $email Email object.
* @param string $default_from_name Default from name.
*/
$from_name = apply_filters( 'woocommerce_email_from_name', get_option( 'woocommerce_email_from_name', $default ), $this, $from_name );
return wp_specialchars_decode( esc_html( $from_name ), ENT_QUOTES );
}