Skip to content

Instantly share code, notes, and snippets.

@nasabikram
Forked from sebgates/jQuery UI correct
Created May 4, 2017 06:56
Show Gist options
  • Save nasabikram/fa360712b11ff10fecad17451495b1e6 to your computer and use it in GitHub Desktop.
Save nasabikram/fa360712b11ff10fecad17451495b1e6 to your computer and use it in GitHub Desktop.
function add_jquery_ui() {
wp_enqueue_script( 'jquery-ui-core' );
wp_enqueue_script( 'jquery-ui-widget' );
wp_enqueue_script( 'jquery-ui-mouse' );
wp_enqueue_script( 'jquery-ui-accordion' );
wp_enqueue_script( 'jquery-ui-autocomplete' );
wp_enqueue_script( 'jquery-ui-slider' );
wp_enqueue_script( 'jquery-ui-tabs' );
wp_enqueue_script( 'jquery-ui-sortable' );
wp_enqueue_script( 'jquery-ui-draggable' );
wp_enqueue_script( 'jquery-ui-droppable' );
wp_enqueue_script( 'jquery-ui-datepicker' );
wp_enqueue_script( 'jquery-ui-resize' );
wp_enqueue_script( 'jquery-ui-dialog' );
wp_enqueue_script( 'jquery-ui-button' );
}
add_action( 'wp_enqueue_scripts', 'add_jquery_ui' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment