From 2c74e4128cd16b34cebc31967de90f7890b5eff4 Mon Sep 17 00:00:00 2001 From: Carlos Bravo <37012961+cbravobernal@users.noreply.github.com> Date: Wed, 18 Jun 2025 22:04:42 +0200 Subject: [PATCH] Prevent access editor UI setting to enable on field type swith --- includes/fields/class-acf-field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/fields/class-acf-field.php b/includes/fields/class-acf-field.php index 29d4477f..03c2521e 100644 --- a/includes/fields/class-acf-field.php +++ b/includes/fields/class-acf-field.php @@ -347,7 +347,7 @@ public function render_bindings_setting( $field ) { // This field setting has a unique behaviour. If the value isn't defined on the field object, it defaults to true, but for new fields, it defaults to off. if ( ! isset( $field['allow_in_bindings'] ) ) { - if ( empty( $field['ID'] ) ) { + if ( empty( $field['ID'] ) || doing_action( 'wp_ajax_acf/field_group/render_field_settings' ) ) { $field['allow_in_bindings'] = false; } else { $field['allow_in_bindings'] = true;