Created
March 5, 2016 15:15
-
-
Save dcavins/a1d7aac2f211cbb62839 to your computer and use it in GitHub Desktop.
Show the hook attached to a specific filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dc_wp_show_hooked_filters(){ | |
global $wp_filter; | |
$filter_name = 'bp_core_fetch_avatar_no_grav'; | |
echo '<pre class="filter-dump">'; | |
var_dump( $wp_filter[$filter_name] ); | |
echo '</pre>'; | |
} | |
add_action( 'wp_head', 'dc_wp_show_hooked_filters' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment