WC_Email::get_from_address()
Get the from address for outgoing emails.
Метод класса: WC_Email{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Email = new WC_Email(); $WC_Email->get_from_address( $from_email );
- $from_email(строка)
- Default wp_mail() email address to send from.
По умолчанию: ''
Код WC_Email::get_from_address() WC Email::get from address WC 9.2.3
public function get_from_address( $from_email = '' ) { $from_email = apply_filters( 'woocommerce_email_from_address', get_option( 'woocommerce_email_from_address' ), $this, $from_email ); return sanitize_email( $from_email ); }