Tribe__Events__Aggregator__Records::has_history()
Returns whether or not there have been any import requests.
Return
(boolean)
Source
File: src/Tribe/Aggregator/Records.php
public function has_history() {
static $has_history = null;
if ( null === $has_history ) {
$args = array(
'fields' => 'ids',
'posts_per_page' => 1,
);
$history = $this->query( $args );
$has_history = ! empty( $history->posts );
}
return $has_history;
}
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |