Integrate the WP_Customizer_Image_Control into a custom type

I want to create a custom control that should have an image upload and a text field. I tried extending the WP_Customize_Image_Control and overriding the render_content () method:

class Custom_Image_Implementation extends WP_Customize_Image_Control {

    public function render_content () {
        parent::render_content();
        ?>
        <input type="text" placeholder="Something" />
        <?php
    }
}

This shows a common image control, but the input won’t show. I tried setting a $type but this has the exact opposite effect: it shows the input but not the image control. What am i missing? Thank you.

Read more here: Integrate the WP_Customizer_Image_Control into a custom type

Leave a Reply

Your email address will not be published. Required fields are marked *