Skip to content

Instantly share code, notes, and snippets.

@bonny
Created October 20, 2012 15:40
Show Gist options
  • Save bonny/3923633 to your computer and use it in GitHub Desktop.
Save bonny/3923633 to your computer and use it in GitHub Desktop.
Dropdown Field, Extended Return Values
Array
(
[selected_value] => Dropdown 2
[selected_option] => Array
(
[value] => Dropdown 2
[key] => dropdown_num_3
[is_selected] => 1
)
[options] => Array
(
[0] => Array
(
[value] => Dropdown 1
[key] => dropdown_num_2
[is_selected] =>
)
[1] => Array
(
[value] => Dropdown 2
[key] => dropdown_num_3
[is_selected] => 1
)
[2] => Array
(
[value] => Dropdown 3
[key] => dropdown_num_4
[is_selected] =>
)
)
)
@sayalikhandekar
Copy link

Can i use this code create custom field in wordpress?

@bonny
Copy link
Author

bonny commented Jun 28, 2021

Can i use this code create custom field in wordpress?

No, this is old example return values from a plugin that is no longer in development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment