Deprecated

This method has been deprecated.

AnsPress_Email_Hooks::add_email( string|array $email )

Description #

Add email to object.

Parameters #

  • $email
    string | array (Required) Email of array of emails.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/free/email.php

	public static function add_email( $email ) {

		if ( is_array( $email ) ) {
			foreach ( $email as $e ) {
				if ( is_email( $email ) && ! in_array( $e, SELF::$emails, true ) ) {
					SELF::$emails[] = $email;
				}
			}
		} elseif ( is_email( $email ) && ! in_array( $email, SELF::$emails, true ) ) {
			SELF::$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