Find all functions hooked to a WordPress action / filter

Quite simply add this near the apply_filters or do_action.

global $wp_filter;
error_log( "\n " . print_r( $wp_filter['action_or_filter_tag_name'], true ), 3, dirname(__FILE__) . "/hook_error_log.log" ); 
Click to Copy