acf_pro_was_license_refunded()ACF 6.2.2

Checks if the current license was refunded.

Хуков нет.

Возвращает

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

Использование

acf_pro_was_license_refunded( $status );
$status(массив)
Optional license status array.
По умолчанию: array()

Список изменений

С версии 6.2.2 Введена.

Код acf_pro_was_license_refunded() ACF 6.4.2

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

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