acf_is_block_editor() ACF 5.8.0
Returns true if the current screen uses the block editor.
Хуков нет.
Возвращает
true/false.
Использование
acf_is_block_editor();
Список изменений
С версии 5.8.0 | Введена. |
Код acf_is_block_editor() acf is block editor ACF 5.9.1
function acf_is_block_editor() {
if( function_exists('get_current_screen') ) {
$screen = get_current_screen();
if( method_exists($screen, 'is_block_editor') ) {
return $screen->is_block_editor();
}
}
return false;
}