Tribe__Events__Aggregator__Record__Abstract::failed_before( string|int $time )
Whether this record failed before a specific time.
Contents
Parameters
- $time
-
(string|int) (Required) A timestamp or a string parseable by the
strtotimefunction.
Return
(bool)
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;
}
Changelog
| Version | Description |
|---|---|
| 4.6.15 | Introduced. |