This snippet adds the backend options page where you can add page ids to disable the gutenberg editor. This php should go in either your plugin, theme functions file, or in a code snippets plugin.
add_action( 'acf/include_fields', function() {
if ( ! function_exists( 'acf_add_local_field_group' ) ) {
return;
}
acf_add_local_field_group( array(
'key' => 'group_67c074a03cc21',
'title' => 'Extra Options',
'fields' => array(
array(
'key' => 'field_67c0fad9761eb',
'label' => 'Hide editor',
'name' => 'hide_editor',
'aria-label' => '',
'type' => 'repeater',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'layout' => 'table',
'pagination' => 0,
'min' => 0,
'max' => 0,
'collapsed' => '',
'button_label' => 'Add Row',
'rows_per_page' => 20,
'sub_fields' => array(
array(
'key' => 'field_67c10a319591a',
'label' => 'Page id',
'name' => 'page_id',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
'parent_repeater' => 'field_67c0fad9761eb',
),
),
),
),
'location' => array(
array(
array(
'param' => 'options_page',
'operator' => '==',
'value' => 'site-global-settings',
),
),
),
'menu_order' => 2,
'position' => 'normal',
'style' => 'seamless',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
} );
add_action( 'acf/init', function() {
acf_add_options_page( array(
'page_title' => 'Site Global Settings',
'menu_slug' => 'site-global-settings',
'position' => '',
'redirect' => false,
'menu_icon' => array(
'type' => 'dashicons',
'value' => 'dashicons-buddicons-topics',
),
'icon_url' => 'dashicons-buddicons-topics',
) );
} );