Api_Server::has_valid_license()

has_valid_license


Return Return

(mixed) false||array


Source Source

File: src/core/classes/class-api-server.php

	public static function has_valid_license() {

		$license = self::get_license();

		if ( ! isset( $license['license'] ) || 'valid' !== $license['license'] ) {
			throw new \Exception( __( 'License is not valid', 'uncanny-automator' ) );
		}

		return $license;
	}