Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / Classes / WC_Email / WC_Email::get_from_address()

WC_Email::get_from_address( string $from_email = '' )

Get the from address for outgoing emails.

Contents

  • Description
    • Parameters
    • Return
    • Source
  • Related
    • Used By
  • User Contributed Notes

Description #Description


Parameters #Parameters

$from_email

(Optional) Default wp_mail() email address to send from.

Default value: ''


Top ↑

Return #Return

(string)


Top ↑

Source #Source

File: includes/emails/class-wc-email.php

	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 );
	}

Expand full source code Collapse full source code


Top ↑

Related #Related

Top ↑

Used By #Used By

Used By
Used By Description
includes/emails/class-wc-email.php: WC_Email::get_headers()

Get email headers.


Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

Proudly powered by WordPress