acf_pro_is_updates_page_visible()ACF 6.2.4

Is the updates page visible.

Хуков нет.

Возвращает

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

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

acf_pro_is_updates_page_visible();

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

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

Код acf_pro_is_updates_page_visible() ACF 6.4.2

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' );
}