Noptin_Background_Sync::get_unsynced_subscriber()

Fetches an unsynced subscriber.


Return Return

(string|null;)


Top ↑

Source Source

File: includes/class-noptin-background-sync.php

	public function get_unsynced_subscriber() {

		$query = new Noptin_Subscriber_Query(
			array(
				'meta_key'	    => 'wp_user_id',
				'meta_compare'  => 'NOT EXISTS',
				'number'        => 1,
				'fields'        => 'id',
				'count_total'   => false,
			)
		);

		$subscriber = $query->get_results();

		return empty( $subscriber ) ? 0 : $subscriber[0];

	}


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