Email::add_email( string $email )

Description #

Add an email to the currently sending list.

Parameters #

  • $email
    string (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;
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment