For instance, when I’m trying to understand how a WordPress theme was coded, I spend hours trying to figure out which php file is generating the element (for instance, a div or link).
Is there any way of detecting the PHP file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use debug_backtrace() or debug_print_backtrace() to dig really deep and find out all kinds of information, such as when and where functions are called and files are loaded.
This is really useful for finding out
how a WordPress theme was coded. It will tell you pretty much everything.