acf_enqueue_in_iframe_styles()ACF 6.7

Enqueues scripts and styles to load inside the block editor iframe. This allows us to do things like style contenteditable, and other inline editing elements.

No Hooks.

Returns

null. Nothing (null).

Usage

acf_enqueue_in_iframe_styles();

Changelog

Since 6.7 Introduced.

acf_enqueue_in_iframe_styles() code ACF 6.8.8

function acf_enqueue_in_iframe_styles() {
	if ( is_admin() ) {
		$min      = defined( 'ACF_DEVELOPMENT_MODE' ) && ACF_DEVELOPMENT_MODE ? '' : '.min';
		$css_path = acf_get_url( "assets/build/css/pro/acf-styles-in-iframe-for-blocks{$min}.css" );
		wp_enqueue_style( 'acf-inline-editing-styles', $css_path, ACF_VERSION, true );
	}
}