enqueue script dependencies
-
Let’s say I enqueue the following script:
wp_enqueue_script( $this->ch_reservation, plugin_dir_url( __FILE__ ) . ‘js/my-jquery.js’, array( ‘jquery-ui-spinner’, ‘jquery-ui-datepicker’ ), $this->version, false );
Will it automatically enqueue the jquery and jquery-ui as I use jquery-ui-datepicker and/or spinner in the dependency parameter?
Or, do I have to include ‘jquery’ in the array?
Thank you!
- The topic ‘enqueue script dependencies’ is closed to new replies.