Skip to content

Commit

Permalink
Make REST API options as radios instead of dropdowns to make it more …
Browse files Browse the repository at this point in the history
…clear what options there are
  • Loading branch information
sc0ttkclark committed Mar 25, 2024
1 parent 045258a commit c7c89ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/PodsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4409,7 +4409,7 @@ public function add_rest_settings_tab_fields( $options, $pod ) {
'label' => __( 'Field Mode', 'pods' ),
'help' => __( 'Specify how you would like your values returned in the REST API responses. If you choose to show Both raw and rendered values then an object will be returned for each field that contains the value and rendered properties.', 'pods' ),
'type' => 'pick',
'pick_format_single' => 'dropdown',
'pick_format_single' => 'radio',
'default' => 'value',
'depends-on' => [ 'rest_enable' => true ],
'data' => [
Expand All @@ -4422,7 +4422,7 @@ public function add_rest_settings_tab_fields( $options, $pod ) {
'label' => __( 'Field Location', 'pods' ),
'help' => __( 'Specify where you would like your values returned in the REST API responses. To show in the "meta" object of the response, you must have Custom Fields enabled in the Post Type Supports features.', 'pods' ),
'type' => 'pick',
'pick_format_single' => 'dropdown',
'pick_format_single' => 'radio',
'default' => 'object',
'depends-on' => [ 'rest_enable' => true ],
'data' => [
Expand Down

0 comments on commit c7c89ae

Please sign in to comment.