Helper::add_email( string $email )
Description #
Add an email to the currently sending list.
Parameters #
- $emailstring (Required) Email.
Source #
File: addons/email/class-helper.php
public function add_email( $email ) {
$email = trim( $email );
if ( ! in_array( $email, $this->emails, true ) ) {
/**
* Hook triggered before an email added to current sending list.
*
* @since 4.1.0
*/
do_action_ref_array( 'ap_before_email_to_list', array( $this ) );
$this->emails[] = $email;
}
}
Expand full source code Collapse full source code View on GitHub: addons/email/class-helper.php:127
Add your comment