This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

View File

@@ -0,0 +1,16 @@
( function( $, api ) {
api.controlConstructor['toggle'] = api.Control.extend( {
ready: function() {
var control = this;
this.container.on( 'change', 'input:checkbox', function() {
value = this.checked ? true : false;
control.setting.set( value );
} );
}
} );
} )( jQuery, wp.customize );