Switch Image

Display switch image for multi-selection input fields.

Code Sample:

array(
    'id'      => 'switch_img_field15',
    'title'       => __('Switch image Field','text-domain'),
    'details'  => __('Description of switch image field','text-domain'),
    'type'    => 'switch_img',
    'default'  => 'option_2',
    'width'     =>'100px',
    'height'    =>'auto',
    'args'    => array(
        'option_1' => array('src'=>'https://i.imgur.com/YiUyAgA.png', 'width'=>'100px', 'height'=>'auto'),
        'option_2' => array('src'=>'https://i.imgur.com/tWGz0EU.png', 'width'=>'100px', 'height'=>'auto'),
        'option_3' => array('src'=>'https://i.imgur.com/GT3VkYX.png', 'width'=>'100px', 'height'=>'auto'),

    ),
),

Preview:

WordPress Option Framework