From c7c89ae31af08fb32d6da990725021c4d2d07cd9 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Mon, 25 Mar 2024 10:52:22 -0500 Subject: [PATCH] Make REST API options as radios instead of dropdowns to make it more clear what options there are --- classes/PodsAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/PodsAdmin.php b/classes/PodsAdmin.php index 9f3c91741f..87c830d619 100644 --- a/classes/PodsAdmin.php +++ b/classes/PodsAdmin.php @@ -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' => [ @@ -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' => [