Skip to content

Commit 89d69ff

Browse files
committed
Fix not allowed bindings
1 parent 4ec1ada commit 89d69ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/rest-api/class-acf-rest-types-endpoint.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public function get_scf_fields( $post_type_object ) {
7272
$group_fields = array();
7373

7474
foreach ( $fields as $field ) {
75+
if ( isset( $field['allow_in_bindings'] ) && ! $field['allow_in_bindings'] ) {
76+
// Skip fields that are not allowed in bindings.
77+
continue;
78+
}
7579
$group_fields[] = array(
7680
'label' => $field['label'],
7781
'type' => $field['type'],

0 commit comments

Comments
 (0)