__( 'Edit in REST API?', 'acf-to-rest-api' ), 'instructions' => '', 'type' => 'true_false', 'name' => 'edit_in_rest', 'ui' => 1, 'class' => 'field-edit_in_rest', 'default_value' => 0, ), true ); } else { ?> 'radio', 'name' => 'fields[' . $field['name'] . '][edit_in_rest]', 'value' => $field['edit_in_rest'], 'layout' => 'horizontal', 'choices' => array( 1 => __( 'Yes', 'acf-to-rest-api' ), 0 => __( 'No', 'acf-to-rest-api' ), ), ) ); ?> __( 'Show in REST API?', 'acf-to-rest-api' ), 'instructions' => '', 'type' => 'true_false', 'name' => 'show_in_rest', 'ui' => 1, 'class' => 'field-show_in_rest', 'default_value' => 0, ), true ); } else { ?> 'radio', 'name' => 'fields[' . $field['name'] . '][show_in_rest]', 'value' => $field['show_in_rest'], 'layout' => 'horizontal', 'choices' => array( 1 => __( 'Yes', 'acf-to-rest-api' ), 0 => __( 'No', 'acf-to-rest-api' ), ), ) ); ?>