Answers for "wp jquery ui"

0

wp jquery ui

/*
First of all, WordPress registers jQuery UI via wp_default_scripts().

Dependencies are already set, so you only need to enqueue the script 
you really need (and not the core). Since you're not changing version
number or anything, it is ok to only use the handle.
*/
// no need to enqueue -core, because dependancies are set
wp_enqueue_script( 'jquery-ui-sortable' );
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' );
Posted by: Guest on August-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language