noptin_email_exists( string $email )

Checks whether the subscriber with a given email exists.


Parameters Parameters

$email

(string) (Required) The email to check for.


Top ↑

Return Return

(bool)


Top ↑

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 );
}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.5Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation