NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-plus
/
customizer
/
controls
/
switch
/
Name
Size
Perms
Actions
📄 class-control-switch.php
3,689 B
0644
Edit
|
Chmod
|
Delete
📄 switch.js
351 B
0644
Edit
|
Chmod
|
Delete
Editing: switch.js
wp.customize.controlConstructor['wdt-switch'] = wp.customize.Control.extend({ ready: function() { var control = this, checkboxValue = control.setting._value; this.container.on( 'change', 'input', function(){ checkboxValue = ( jQuery( this ).is( ':checked' ) ) ? true : false; control.setting.set( checkboxValue ); }); } });
Cancel