Tribe__Events__Aggregator__Record__Abstract::failed_before( string|int $time )

Whether this record failed before a specific time.


Parameters

$time

(string|int) (Required) A timestamp or a string parseable by the strtotime function.


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/Aggregator/Record/Abstract.php

	public function failed_before( $time ) {
		$last_import_status = $this->get_last_import_status( 'error', true );

		if ( empty( $last_import_status ) ) {
			return false;
		}

		if ( ! is_numeric( $time ) ) {
			$time = strtotime( $time );
		}

		return strtotime( $this->post->post_modified ) <= (int) $time;
	}

Top ↑

Changelog

Changelog
Version Description
4.6.15 Introduced.