Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Mailchimp_Helpers::has_valid_license()

Checks if the user has valid license in pro or free version.

Contents


Return Return

(Uncanny_Automatorboolean.)


Source Source

File: src/integrations/mailchimp/helpers/mailchimp-helpers.php

	public function has_valid_license() {
		$has_pro_license  = false;
		$has_free_license = false;
		$free_license_status = get_option( 'uap_automator_free_license_status' );
		$pro_license_status  = get_option( 'uap_automator_pro_license_status' );
		if ( defined( 'AUTOMATOR_PRO_FILE' ) && 'valid' === $pro_license_status ) {
			$has_pro_license = true;
		}
		if ( 'valid' === $free_license_status ) {
			$has_free_license = true;
		}
		return $has_free_license || $has_pro_license;
	}