Created
January 16, 2013 00:44
-
-
Save soderlind-gist/4543621 to your computer and use it in GitHub Desktop.
piklist:radio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
piklist( 'field', array( | |
'type' => 'radio' | |
, 'scope' => 'post_meta' // Not used for settings sections | |
, 'field' => 'field_name' | |
, 'value' => 'option2' // Sets default to Option 2 | |
, 'label' => 'Example Field' | |
, 'description' => 'Field Description' | |
, 'attributes' => array( | |
'class' => 'text' | |
) | |
, 'choices' => array( | |
'option1' => 'Option 1' | |
, 'option2' => 'Option 2' | |
, 'option3' => 'Option 3' | |
) | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment