I use the Strong Testimonial plugin, I need to slightly change the functionality of the js script, how to do it correctly, so that after updating the plugin everything worked?

    1 answer 1

    We need to look at how the script starts - look for wp_enqueue_script() , wp_register_script() , wp_localize_script() with the name of the desired file. In your plugin or your child theme, cancel the launch of the plugin's script using wp_dequeue_script() in the wp_enqueue_scripts event handling function with priority lower (later) than the script runs in Strong Testimonial. The default priority is usually 10, so your undo function should have a priority of 20.

    A copy of the script should be placed in the folder / subfolder of your plug-in or your child theme. Edit it there.

    You need to run your script in the same function with priority 20, after canceling the launch of the plugin script.