WC_Log_Handler_Email::add_email
Adds an email to the list of recipients.
Method of the class: WC_Log_Handler_Email{}
No Hooks.
Returns
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() WC Log Handler Email::add email code WC 10.8.1
public function add_email( $email ) {
array_push( $this->recipients, $email );
}