acf_pro_get_manage_license_url()ACF 6.2.3

Gets the URL to the "My Account" section for an ACF license.

Хуков нет.

Возвращает

Строку.

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

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

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

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

Код acf_pro_get_manage_license_url() ACF 6.4.2

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

	$url = 'https://www.advancedcustomfields.com/my-account/view-licenses/';

	if ( ! empty( $status['manage_subscription_url'] ) ) {
		$url = $status['manage_subscription_url'];
	} elseif ( ! empty( $status['view_licenses_url'] ) ) {
		$url = $status['view_licenses_url'];
	}

	return $url;
}