kala-tamin how can I get wordpress to tell me which function rendered a specific piece of output


how can I get wordpress to tell me which function rendered a specific piece of output



I've found the List Hooked Functions method to display all the elements that are contributing to the final render, but I want to see which of those functions is ultimately responsible for rendering a specific piece of output. Ideally, it would work similarly to Magento's Template Hints so the responsible code is listed right next to the resultant output.

I guess I could write a function that hooks into each event and attempts to find the last function in the chain of hooks for that particular component...

Any thoughts appreciated.

Thanks, Jonathan


Can I assign any post into specific pages?

1:

Migrating wordpress 3.0.1 from one server to anotherManaging Multiple Wordpress SitesProblem when I try to move my WordPress blog to a new server

2:

WordPress Fatal Error: call to undefined function
I think this will be very hard to do. Display wordpress comments before the plugins?Wordpress output comes from all over the place, many little functions this call echo on their own without notifying anything (activating no hook). How to create feedburner feed for sub-folder?If everything went through a template, you could modify the code this calls the template so it prints the name of the template first, as your Magento case seems to do. But this is not the Wordpress way, so your best attempt may be to replace all calls to echo with echo __FILE__ . ': ' . __FUNCTION__ . or any thing weird like that..


73 out of 100 based on 58 user ratings 133 reviews