Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP Dump all filters
<?php
add_action( 'all', create_function( '', 'var_dump( current_filter() );' ) );
@studiograsshopper

This comment has been minimized.

Copy link
Owner Author

studiograsshopper commented Oct 9, 2011

Place in functions.php and dump all active filters for that page load. Warning - it can be a very long list!

@studiograsshopper

This comment has been minimized.

Copy link
Owner Author

studiograsshopper commented Oct 9, 2011

Got this off the wp-hackers list. Viperbond, perhaps, who posted it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.