Tribe__Cache::get_last_occurrence( string $action )

Returns the time of an action last occurrence.


Parameters

$action

(string) (Required) The action to return the time for.


Top ↑

Return

(float) The time (microtime) an action last occurred, or the current microtime if it never occurred.


Top ↑

Source

File: src/Tribe/Cache.php

	public function get_last_occurrence( $action ) {
		return (int) get_option( 'tribe_last_' . $action, time() );
	}

Top ↑

Changelog

Changelog
Version Description
4.9.14 Introduced.