image

Option type image supports the following properties:
Name
Type
Default
Description
show_size
Boolean
false
The property shows also the image width and height
emptyText
String
‘No Image Selected’
Text to appear when no image selected
$options->add_option(
'image',
[
'type' => 'image',
'id' => 'image',
'description' => 'Choose the desired image.',
'title' => esc_html__( 'Image', 'zionbuilder' ),
'show_size' => true,
'default' => [
'image' => Utils::get_file_url( 'assets/img/no-image.jpg' ),
],
]
);
Last updated
Was this helpful?