Tribe__Events__Aggregator__Records::has_scheduled()

Returns whether or not there are any scheduled imports.


Return

(boolean)


Top ↑

Source

File: src/Tribe/Aggregator/Records.php

	public function has_scheduled() {
		static $has_scheduled = null;

		if ( null === $has_scheduled ) {
			$args = array(
				'fields' => 'ids',
				'post_status' => $this->get_status( 'schedule' )->name,
				'posts_per_page' => 1,
			);

			$scheduled = $this->query( $args );
			$has_scheduled = ! empty( $scheduled->posts );
		}

		return $has_scheduled;
	}

Top ↑

Changelog

Changelog
Version Description
4.3.0 Introduced.