Noptin_Background_Process::is_queue_empty()

Is queue empty


Return Return

(bool)


Top ↑

Source Source

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

		protected function is_queue_empty() {
			global $wpdb;

			$table  = $wpdb->options;
			$column = 'option_name';

			if ( is_multisite() ) {
				$table  = $wpdb->sitemeta;
				$column = 'meta_key';
			}

			$key = $wpdb->esc_like( $this->identifier . '_batch_' ) . '%';

			$count = $wpdb->get_var(
				$wpdb->prepare(
					"
			SELECT COUNT(*)
			FROM {$table}
			WHERE {$column} LIKE %s
		",
					$key
				)
			);

			return ( $count > 0 ) ? false : true;
		}


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