acf_pro_update_license_status()ACF 6.2.2

Updates the ACF PRO license status.

No Hooks.

Returns

true|false. True if the value was set, false otherwise.

Usage

acf_pro_update_license_status( $status );
$status(array) (required)
The current license status.

Changelog

Since 6.2.2 Introduced.

acf_pro_update_license_status() code ACF 6.8.8

function acf_pro_update_license_status( $status ) {
	$status = acf_pro_parse_license_status( $status );
	$store  = acf_get_store( 'acf_pro_license_status' );

	$store->set( $status );

	return acf_pro_update_license_option(
		'acf_pro_license_status',
		$status,
		true
	);
}