noptin_email_exists( string $email )
Checks whether the subscriber with a given email exists.
Parameters Parameters
(string) (Required) The email to check for.
Return Return
(bool)
Source Source
File: includes/subscriber.php
function noptin_email_exists( $email ) { global $wpdb; $table = get_noptin_subscribers_table_name(); $id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $table WHERE email =%s LIMIT 1;", $email ) ); return ! empty( $id ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.5 | Introduced. |