/** * KIRKI CONTROL: RADIO-IMAGE */ wp.customize.controlConstructor['radio-image'] = wp.customize.Control.extend( { ready: function() { var control = this; this.container.on( 'click', 'input', function() { control.setting.set( jQuery( this ).val() ); }); } });