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 () {
        <input type="text" placeholder="Something" />

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


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: