WC_Emails::email_addresses()
Get the email addresses.
Method of the class: WC_Emails{}
No Hooks.
Return
null
. Nothing (null).
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
WC_Emails::email_addresses() WC Emails::email addresses code WC 9.4.2
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, ) ); } }