Get pluginBuy


radio buttons in WordPress meta boxes


	'id' => 'my_radio',
	'label' => 'Label',
	'type' => 'radio',
	'options' => array(
		'val1' => 'Option 1',
		'val2' => 'Option 2',
	'default' => 'val1',


Name Description
id (String) Field id. Required.
label (String) Field label. Required.
default (String) Default predefined value.
inline (Bool) Set true if want radio button to be displayed on the same line, defaults to false.
description (String) Some text or HTML that will be displayed after the field.
options (Array) Options as an array in array( option value => option name ) format.
show_if (Array) You can display this field conditionally. In order to do that pass id key and value key with an id and value of any other checkbox, select or radio field the current field should depend on. Read more about conditional logic.