Skip to content

Instantly share code, notes, and snippets.

View brettsmason's full-sized avatar

Brett Mason brettsmason

View GitHub Profile
jQuery( document ).ready( function($) {
$( '.customize-control-checkbox-multiple > ul' ).sortable({
handle: '.dashicons-menu',
axis: 'y',
stop: function( event, ui ) {
checkbox_values = $( this ).parents( '.customize-control' ).find( 'input[type="checkbox"]:checked' ).map(
function() {
return this.value;
}
<?php
/**
* Multiple checkbox customize control class.
*
* @since 1.0.0
* @access public
*/
class JT_Customize_Control_Checkbox_Multiple extends WP_Customize_Control {
/**