acf_pro_was_license_refunded()ACF 6.2.2

Checks if the current license was refunded.

No Hooks.

Returns

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

Usage

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

Changelog

Since 6.2.2 Introduced.

acf_pro_was_license_refunded() code ACF 6.8.8

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

	return ! empty( $status['refunded'] );
}