acf_pro_is_updates_page_visible()ACF 6.2.4

Is the updates page visible.

No Hooks.

Returns

true|false. true if the updates page should be hidden as we're not the primary multisite site.

Usage

acf_pro_is_updates_page_visible();

Changelog

Since 6.2.4 Introduced.

acf_pro_is_updates_page_visible() code ACF 6.8.8

function acf_pro_is_updates_page_visible() {
	// Hide the updates page if we're a multisite subsite, legacy multisite, and the primary site is active.
	if ( acf_is_multisite_sub_site() ) {
		$status = get_blog_option( get_main_site_id(), 'acf_pro_license_status', array() );

		if ( acf_pro_is_legacy_multisite( $status ) && acf_pro_is_license_active( $status ) ) {
			return false;
		}
	}

	return acf_get_setting( 'show_updates' );
}