acf_pro_parse_license_status()ACF 6.2.2

Makes sure the ACF PRO license status is in a format we expect.

Хуков нет.

Возвращает

Массив.

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

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

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

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

Код acf_pro_parse_license_status() ACF 6.4.2

function acf_pro_parse_license_status( $status = array() ) {
	$status  = is_array( $status ) ? $status : array();
	$default = array(
		'status'                  => '',
		'created'                 => 0,
		'expiry'                  => 0,
		'name'                    => '',
		'lifetime'                => false,
		'refunded'                => false,
		'view_licenses_url'       => '',
		'manage_subscription_url' => '',
		'error_msg'               => '',
		'next_check'              => time() + 3 * HOUR_IN_SECONDS,
	);

	return wp_parse_args( $status, $default );
}