Deprecated
This method has been deprecated.
AnsPress_Email_Hooks::add_email( string|array $email )
Description #
Add email to object.
Parameters #
- $emailstring | array (Required) Email of array of emails.
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; } }
Expand full source code Collapse full source code View on GitHub: addons/free/email.php:300
Add your comment