WordPress at Your Fingertips
function is not described

WC_Emails::email_addresses() public WC 1.0

Get the email addresses.

{} It's a method of the class: WC_Emails{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Emails = new WC_Emails();
$WC_Emails->email_addresses( $order, $sent_to_admin, $plain_text );
$order(WC_Order) (required)
Order instance.
$sent_to_admin(true|false)
If should sent to admin.
Default: false
$plain_text(true|false)
If is plain text email.
Default: false

Code of WC_Emails::email_addresses() WC 5.6.0

public function email_addresses( $order, $sent_to_admin = false, $plain_text = false ) {
	if ( ! is_a( $order, 'WC_Order' ) ) {
		return;
	}
	if ( $plain_text ) {
		wc_get_template(
			'emails/plain/email-addresses.php',
			array(
				'order'         => $order,
				'sent_to_admin' => $sent_to_admin,
			)
		);
	} else {
		wc_get_template(
			'emails/email-addresses.php',
			array(
				'order'         => $order,
				'sent_to_admin' => $sent_to_admin,
			)
		);
	}
}