Tribe__Tickets_Plus__PUE::is_current_license_valid( bool $revalidate = false )

Checks the value of the temporary key status transient.


Parameters

$revalidate

(bool) (Optional) whether to submit a new validation API request.

Default value: false


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/PUE.php

	public function is_current_license_valid( $revalidate = false ) {

		if ( empty( $this->pue_instance ) || ! $this->pue_instance instanceof Tribe__PUE__Checker ) {
			return false;
		}

		if ( true === $revalidate ) {
			$this->revalidate_key();
		}

		$valid_license = get_transient( $this->pue_instance->pue_key_status_transient_name );

		if ( 'valid' === $valid_license ) {
			return true;
		}

		return false;
	}

Top ↑

Changelog

Changelog
Version Description
5.4.0 Introduced.