Find all functions hooked to a WordPress action / filter

Sumit Singh
Sumit Singh
21 May 2022

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" ); 

Was this article helpful?

Tags

Categories

Never miss new post again

Subscribe and get list of new posts in your inbox

Click to Copy