Slide toggle Jquery UI

As jQuery UI is included in the WordPress Core, you don’t need to load it from the CDN. Please try to change your wp_enqueue_scripts from wp_enqueue_script(‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js’, ‘1’, true); wp_enqueue_script(‘menu_script’, get_stylesheet_directory_uri() . ‘/js/menu.js’, array(‘jquery’, ‘jquery-ui’), ‘1’, true); to wp_enqueue_script(‘jquery-ui-core’); wp_enqueue_script(‘jquery-effects-slide’); wp_enqueue_script(‘menu_script’, get_stylesheet_directory_uri() . ‘/js/menu.js’, array(‘jquery’, ‘jquery-ui-core’,’jquery-effects-slide’), ‘1’, true); Also be sure to call for the … Read more

I want to run Sql Query in script how can i do this

You can use ES6 Promise inside for-each function. So that the loop stop, wait for response from ajax call, than continue loop again with response data. Promises are a clean way to implement async programming in JavaScript (ES6 new feature). Prior to promises, Callbacks were used to implement async programming. Let’s begin by understanding what … Read more

wp_deregister_script(‘jquery’) not working

Use the Following sequence to override jquery Install latest jQuery version 3.4.1. Update the following sequence of code and try!!!! wp_deregister_script(‘jquery’); wp_register_script(‘jquery’,(“https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”), false); wp_enqueue_script(‘jquery’); I hope it will help you!!!