Sidebar Select

Select sidebars via select2, select, radio, checkbox and etc input field.

Code Sample:

array(
    'id'		=> 'sidebars_field',
    'title'		=> __('Sidebar select Field','text-domain'),
    'details'		=> __('Description of sidebars select field','text-domain'),
    'type'		=> 'select2',
    'args'		=> 'WPADMINSETTINGS_SIDEBARS_ARRAY',
),
array(
    'id'		=> 'sidebars_field',
    'title'		=> __('Sidebar select Field','text-domain'),
    'details'		=> __('Description of sidebars select field','text-domain'),
    'type'		=> 'select2',
    'multiple'=> true,
    'args'		=> 'WPADMINSETTINGS_SIDEBARS_ARRAY',
),

 

Preview:

Sidebar Select 1

WordPress Option Framework

array(
    'id'		=> 'sidebars_field',
    'title'		=> __('Sidebar select Field','text-domain'),
    'details'		=> __('Description of sidebars select field','text-domain'),
    'type'		=> 'select',
    //'multiple'		=> true,
    'args'		=> 'WPADMINSETTINGS_SIDEBARS_ARRAY',
),
array(
    'id'		=> 'sidebars_field',
    'title'		=> __('Sidebar select Field','text-domain'),
    'details'	=> __('Description of sidebars select field','text-domain'),
    'type'		=> 'select',
    'multiple'=> true,
    'args'		=> 'WPADMINSETTINGS_SIDEBARS_ARRAY',
),

 

Sidebar Select 2

Sidebar Select 3