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