acf_is_blocks_v2_iframe_compat_plugin_active() │ ACF 6.8.8.1

Determines whether the ACF Blocks V2 Iframe Compatibility plugin is active.

When active, the site owner has opted into the temporary non-iframe editor fallback, so the legacy block version notice is not shown.

Хуков нет.

Возвращает

boolean. True if the compatibility plugin is active.

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

acf_is_blocks_v2_iframe_compat_plugin_active();

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

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

Код acf_is_blocks_v2_iframe_compat_plugin_active() ACF 6.8.11

function acf_is_blocks_v2_iframe_compat_plugin_active() {
	if ( ! function_exists( 'is_plugin_active' ) ) {
		require_once ABSPATH . 'wp-admin/includes/plugin.php';
	}

	return is_plugin_active( 'acf-blocks-v2-iframe-compatibility/acf-blocks-v2-iframe-compat.php' );
}