How do action and filter hooks understand where to look for the core function that we hooked our function to them
I think you may be looking at this the wrong way. It doesn’t need to look for the $tag function anywhere in core (or anywhere else for that matter). That function needs to already be loaded in the current sequence. As long as whatever file that contains your custom function is loaded at the time … Read more