app/Hametuha/Sekisyo/GateKeeper.php
public function check_validity() {
		foreach ( $this->plugins as $plugin ) {
			/** @var Plugin $plugin */
			if ( $plugin->valid ) {
				// This is valid plugin, so we need check license health.
				$plugin->update_license( $plugin->license, true );
				if ( ! $plugin->fail_limit ) {
				    // If plugin has no fail limit, skip it.
				    continue;
				}
				/**
				 * sekisyo_update_error
				 *
				 * @package sekisyo
				 * @since 1.0.0
				 *
				 * @param string $guid
				 * @param int $failed
				 * @param Plugin $plugin
				 */
				do_action( 'sekisyo_update_error', $plugin->guid, $plugin->failed, $plugin );
				if ( $plugin->failed > $plugin->fail_limit ) {
					$plugin->inactivate();
				}
			}
		}
	}
public function check_validity() {
		foreach ( $this->plugins as $plugin ) {
			/** @var Plugin $plugin */
			if ( $plugin->valid ) {
				// This is valid plugin, so we need check license health.
				$plugin->update_license( $plugin->license, true );
				if ( ! $plugin->fail_limit ) {
				    // If plugin has no fail limit, skip it.
				    continue;
				}
				/**
				 * sekisyo_update_error
				 *
				 * @package sekisyo
				 * @since 1.0.0
				 *
				 * @param string $guid
				 * @param int $failed
				 * @param Plugin $plugin
				 */
				do_action( 'sekisyo_update_error', $plugin->guid, $plugin->failed, $plugin );
				if ( $plugin->failed > $plugin->fail_limit ) {
					$plugin->inactivate();
				}
			}
		}
	}
public function check_validity ( ) { foreach ( $ this -> plugins as $ plugin ) { /** @var Plugin $plugin */ if ( $ plugin -> valid ) { // This is valid plugin, so we need check license health. $ plugin -> update_license ( $ plugin -> license , true ) ; if ( ! $ plugin -> fail_limit ) { // If plugin has no fail limit, skip it. continue ; } /**
				 * sekisyo_update_error
				 *
				 * @package sekisyo
				 * @since 1.0.0
				 *
				 * @param string $guid
				 * @param int $failed
				 * @param Plugin $plugin
				 */ do_action ( 'sekisyo_update_error' , $ plugin -> guid , $ plugin -> failed , $ plugin ) ; if ( $ plugin -> failed > $ plugin -> fail_limit ) { $ plugin -> inactivate ( ) ; } } } }
Check validity with cron job
Check validity with cron job