Tribe__PUE__Checker::set_key_status( int $valid )

Sets the key status based on the key validation check results.


Parameters

$valid

(int) (Required) 0 for invalid, 1 or 2 for valid.


Top ↑

Source

File: src/Tribe/PUE/Checker.php

		public function set_key_status( $valid ) {
			$status = tribe_is_truthy( $valid ) ? 'valid' : 'invalid';
			update_option( $this->pue_key_status_option_name, $status );
			update_option( "{$this->pue_key_status_option_name}_timeout", $this->check_period * HOUR_IN_SECONDS );

			// We set a transient in addition to an option for compatibility reasons.
			// @todo remove transient in a major feature release where we release all plugins.
			set_transient( $this->pue_key_status_transient_name, $status, $this->check_period * HOUR_IN_SECONDS );
		}

Top ↑

Changelog

Changelog
Version Description
4.14.9 Introduced.