Tribe__Cache::get_last_occurrence( string $action )
Returns the time of an action last occurrence.
Contents
Parameters
- $action
-
(string) (Required) The action to return the time for.
Return
(float) The time (microtime) an action last occurred, or the current microtime if it never occurred.
Source
File: src/Tribe/Cache.php
public function get_last_occurrence( $action ) {
return (int) get_option( 'tribe_last_' . $action, time() );
}
Changelog
| Version | Description |
|---|---|
| 5.0.17 | No longer memoizes the first triggered timestamp. |
| 4.9.14 | Introduced. |