Email::add_email( string $email )
Description #
Add an email to the currently sending list.
Parameters #
- $emailstring (Required) Email.
Source #
File: addons/free/email/class-email.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', [ $this ] ); $this->emails[] = $email; } }
Expand full source code Collapse full source code View on GitHub: addons/free/email/class-email.php:126
Add your comment