Tribe__Events__Aggregator__Service::get_limit_remaining( boolean $ignore_cache = false )

Returns the remaining imports for the day


Parameters

$ignore_cache

(boolean) (Optional) Whether or not cache should be ignored when fetching the value

Default value: false


Top ↑

Return

(int)


Top ↑

Source

File: src/Tribe/Aggregator/Service.php

	public function get_limit_remaining( $ignore_cache = false ) {
		$limits = (object) $this->get_usage( 'import', $ignore_cache );

		if ( isset( $limits->remaining ) ) {
			return $limits->remaining;
		}

		return 0;
	}