acf_pro_is_legacy_multisite()ACF 6.2.6

Checks if the current license allows the legacy multisite behavior if we're on a multisite install.

No Hooks.

Returns

true|false. True if legacy multisite, false if not.

Usage

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

Changelog

Since 6.2.6 Introduced.

acf_pro_is_legacy_multisite() code ACF 6.8.8

function acf_pro_is_legacy_multisite( array $status = array() ) {
	if ( ! is_multisite() ) {
		return false;
	}

	if ( empty( $status ) ) {
		$status = get_blog_option( get_main_site_id(), 'acf_pro_license_status', array() );
	}

	if ( ! is_array( $status ) || ! isset( $status['legacy_multisite'] ) ) {
		return false;
	}

	return $status['legacy_multisite'] === true;
}