In single-app, micro-service development almost all functions belong to you or to your team, so no need to know who defined the given function – you probably know it already.
But in CMS development some you may want to find the file where the given function is defined.
It might be WP core, template functions, theme or any of active plugins.
To find it you can use built-in PHP class called “ReflectionFunction”.
For example create such simple hook.Continue reading “Find the file where the given function is defined”