How to remove an unknown JS file from wp_head()
-
Hi,
So I’ve got an insecure reference to a Google Maps JS file in my site header and it is breaking my SSL because it’s hard-coded with https://
It’s an old site with dozens of plugins and customisations done by different people over a number of years.
Normally, I would disable plugins one by one and see which one is the culprit, however, in this case I can’t do it because of the fact that all installed plugins are actively used. Besides there is a chance that this is not happening because of a plugin.
I was looking at wp_deregister_script() function, however, I understand I can’t use it unless I know the id/handle of the script?
Is there a “hacky” way to kill a script, maybe with regex matching or something?
Thank you.
- The topic ‘How to remove an unknown JS file from wp_head()’ is closed to new replies.