This option displays a select input and it has the following properties:
Name | Type | Default | Description |
options | Array | The property allows multiple number types. Example: [ | |
default | String | The property adds the default value:'default' => 'option_id', |
Below is the following example of how the option can be used:
$options->add_option( 'option_name', [ 'type' => 'select', 'description' => esc_html__( 'Select the desired', 'zionbuilder' ), 'title' => esc_html__( 'Title', 'zionbuilder' ), 'default' => 'option_id_1', 'options' => [ [ 'id' => 'option_id_1', 'name' => esc_html__( 'Option 1', 'zionbuilder' ), ], [ 'id' => 'option_id_2', 'name' => esc_html__( 'Option 2', 'zionbuilder' ), ], ] );