acf_pro_is_license_expired()ACF 6.2.2

Checks if the current license is expired.

No Hooks.

Returns

true|false. True if expired, false if not.

Usage

acf_pro_is_license_expired( $status );
$status(array)
Optional license status array.
Default: array()

Changelog

Since 6.2.2 Introduced.

acf_pro_is_license_expired() code ACF 6.8.8

function acf_pro_is_license_expired( $status = array() ) {
	if ( empty( $status ) ) {
		$status = acf_pro_get_license_status();
	}

	if ( acf_pro_was_license_refunded( $status ) ) {
		return false;
	}

	return in_array( $status['status'], array( 'expired', 'cancelled' ), true );
}