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!!!

JQuery is not working after complete load of the page

Hard to say what the problem is without seeing the html structure. Any error in your browser console log ? Might that another jQuery function is already bind to the “.apmstoriespic” class. Maybe try the below instead jQuery(“.apmstoriespic”).on(‘hover’,function(){ If you want to skip the jQuery route altogether, there is an easy way to achieve the … Read more

How to enable read more by default using jquery

You can use the solution bellow with jQuery: jQuery(document).ready(function(){ jQuery(“.post-read-more”).each(function(){ jQuery(this).click(); }); // And if you want to finally disable this links jQuery(“.question-read-more”).remove(); jQuery(“.question-read-less”).remove(); }); Bests, Camille

Theme style overrides the plugin style

In a plugin, you have hook add_action( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 ) to enqueue script and CSS. In this hook, there is third parameter $priority you can add the lowest priority to load that hook earlier in execution. So you have 2 options: So if you do … Read more

Doing Math with Gravity Forms List

And now for the final, largely untested, code. In the end I wasn’t sure which operations I’d need to be doing and so wanted to expand the functionality for whatever my client might throw at me in the future. I just got so excited that the [‘*’,’+’] case worked after two days of trying to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)