WC_Log_Handler_Email::add_email()publicWC 1.0

Adds an email to the list of recipients.

Method of the class: WC_Log_Handler_Email{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Log_Handler_Email = new WC_Log_Handler_Email();
$WC_Log_Handler_Email->add_email( $email );
$email(string) (required)
Email address to add.

WC_Log_Handler_Email::add_email() code WC 9.3.1

public function add_email( $email ) {
	array_push( $this->recipients, $email );
}