Radio Image

The Radio Image field offers option to select option as visual image

Radio Image

Name Type Default Description
type string ‘radio-image’ Value identifies the field types.
id string Identifies unique ID for the field. It must be different from other existing field IDs
title string Displays the field label.
desc string Describe the field option in details, appears underneath the field control.
required array Acts like boolean operator and provides the parent, comparison operation, and value which decides the field visibility.
value string Display default string in the text input.
options array Allow setting key pair array values representing the layout options.

Example Declaration


array(    
    'type'  => 'radio-image',    
    'id'    => 'attr_key',    
    'title' => esc_html__( 'Title of attr', 'your_theme_textdomain' ),    
    'desc'  => esc_html__( 'Description of attr', 'your_theme_textdomain' ),          
    'value' => '1', 
    'options' => array(              
      '1' => array(                    
              'label' => '1 Column', 
              'url'   => upb_assets_uri( 'images/1col.png' )      
             ),

      '2' => array( 
             'label' => '2 Column',                    
             'url'   => upb_assets_uri( 'images/2cl.png' )           
              ),     

      '3' => array(    
              'label' => '3 Column',   
              'url'   => upb_assets_uri( 'images/3cl.png' ) 
               ), 
        )   
    )

results matching ""

    No results matching ""