acf_enqueue_in_iframe_styles()
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.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
acf_enqueue_in_iframe_styles();
Список изменений
| С версии 6.7 | Введена. |
Код acf_enqueue_in_iframe_styles() acf enqueue in iframe styles 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 );
}
}