Noptin_Background_Sync::filter_user_query( WP_User_Query $query )

Hides inactive subscribers from the sync.


Parameters Parameters

$query

(WP_User_Query) (Required) The user query.


Top ↑

Source Source

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

	public function filter_user_query( &$query ) {
		global $wpdb;

		$query->query_where .= " AND $wpdb->users.user_status = 0 ";

		if ( is_multisite() ) {
			$query->query_where .= " AND $wpdb->users.deleted = 0 AND $wpdb->users.spam = 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