I'm trying to optimize my header and I was wondering which plugin would call jquery. Is there a debugging tool to know which plugin is doing what in the header ?
Thanks !
|
|
|
Plugins and themes tend to use I would rarely advise this, but since you only need to do it temporarily, you could modify WordPress core and run a debug backtrace for every call to this function. In
Now pop the following in your theme's
Now whenever you load a page on your website, a log gets generated in your WordPress Remember! Undo the changes once you've found out what you need! |
|||
|
|
There is a nifty little function called debug_filters() which lists the callbacks registered on a certain hook. You would call from your theme, at the end of the header.php file for example:
|
|||||
|