Finding bad code in a WordPress Install

  |   By  |  0 Comments

A premium WordPress plugin client was having some trouble with their site. Some of my Javascript had stopped working because of a javascript error from another plugin/theme. Unfortunately their javascript wasn’t enqueued and I was struggling to find how it had got there. I only had site access and no FTP or shell to search.

Enter the fantastic String Locator plugin

Took 30 seconds to find the script that had been put in the header file of the theme manually.

If you are going to add a javascript wp_register_script and wp_enqueue_script are the way to do it right! Google how to do that now!

name

ABOUT THE AUTHOR - ANDY MOYLE

Andy Moyle is a church leader and web developer. His biggest project is the Church Admin WordPress plugin and app. He also runs, mainly so he can eat pizza.