I'm trying to figure out how to find the actual function that's assigned to hooks and filters.
I've been looking at other questions asked here and found a couple plugins that are helpful for findings the add_actions and add_filters that show me the callback function name... but I'm having a hard time finding that actual function(s) so I can see what it does. They aren't always in the same file as the add_action or add_filter.
I just want to do this so I can wrap my head around the concept of hooks and filters better.
So for example, here's an add_action in shortcodes.php on line 335:
add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop()
Here's the actual function on line 144, I want to be able to find these easily:
function do_shortcode($content) {
global $shortcode_tags;
if (empty($shortcode_tags) || !is_array($shortcode_tags))
return $content;
$pattern = get_shortcode_regex();
return preg_replace_callback( "/$pattern/s", 'do_shortcode_tag', $content );
}
Any tips?