image

Option type image supports the following properties:

NameTypeDefaultDescription
show_sizeBooleanfalseThe property shows also the image width and height
emptyTextString‘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' ),
                ],
            ]
        );

Was this article helpful ?

27 people consider this article helpful
Thank you! We will improve this article.

Didn’t find what you’re looking for? Please let us know

Submit a ticket