Automattic\WooCommerce\Internal\LegacyAssets

LegacySelect2UsageTracker::was_recently_checked │ private │ WC 1.0

Whether this usage event was already checked recently.

Method of the class: LegacySelect2UsageTracker{}

No Hooks.

Returns

bool.

Usage

// private - for code of main (parent) class only
$result = $this->was_recently_checked( $event ): bool;
$event(array<string, string>) (required)
Usage event.

LegacySelect2UsageTracker::was_recently_checked() code WC 11.3.0

private function was_recently_checked( array $event ): bool {
	return false !== get_transient( $this->get_transient_key( $event ) );
}