How to get value type addable-box
-
I’m Try to use option type addable-box,
this is my code in theme settings'list-box' => array( 'type' => 'addable-box', 'value' => array(array( 'option_1' => 'value 1', 'option_2' => 'value 2', )), 'attr' => array( 'class' => 'custom-class', 'data-foo' => 'bar' ), 'label' => __('PRIMARY FOCUS', 'urbanos'), 'desc' => __('Set Your Primary Focus Of Your Businesses', 'urbanos'), 'box-options' => array( 'option_1' => array( 'type' => 'text','label' => __('Title', 'urbanos'), ), 'option_2' => array( 'type' => 'textarea','label' => __('url', 'urbanos'), ), 'option_3' => array( 'type' => 'upload','label' => __('Icon Upload', 'urbanos'), ), ), 'template' => 'Focus {{- option_1 }}', // box title 'box-controls' => array( // buttons next to (x) remove box button 'control-id' => '<small class="dashicons dashicons-smiley"></small>', ), 'limit' => 3, // limit the number of boxes that can be added 'add-button-text' => __('Add', 'fw'), 'sortable' => true, ),how to get value ?
i’m try to use
$tes = fw_get_db_settings_option(‘list-box’);
echo $tes;but the value is return array
thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to get value type addable-box’ is closed to new replies.