Possible Duplicate:
How to find out where a function is defined?
I’ve searched google for a while and I can’t figure it out.
I have a known function or class, lets say function/class f_x. This function is defined either in a seperate unkown .php -file.
Is there any way to retrieve the file name of that file? Like you would normally get with FILE? I can’t edit those files as I’m writing a plugin for a php system.
I need this to implement a plugin for wordpress which does:
– Enumerate all shortcode function
– Detect if shortcode is present on page
– if not, remove all hooks and filters related to the plugin using the shortcode.
Besides the fact, that I don’t know, how someone can lose his classes, or functions:
or
You can even ask, where it is defined in the file