I have to add a JavaScript function on a button click inside a plugin, i've tried but every time i update the plugin the function get removed how can i add permanently the function?
CodePudding user response:
There are plugins that allow you to add code that won't be erased on upgrade. This is one.
If you have many customizations, you may want to consider creating your own plugin
CodePudding user response:
The problem is that i need to add a onclick function inside the button in the plugin, I can't do that with an external plugin