Last active
August 29, 2015 13:57
-
-
Save EmranAhmed/9518024 to your computer and use it in GitHub Desktop.
Getting All WordPress Actions and Filters
This file contains 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
<?php | |
function print_all_wp_actions() { | |
global $wp_actions; | |
echo 'all WordPress actions: <pre>'; | |
print_r( $wp_actions ); | |
echo '</pre>'; | |
} | |
function print_all_wp_filters() { | |
global $wp_filter; | |
echo 'all WordPress filters: <pre>'; | |
print_r( $wp_filter ); | |
echo '</pre>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment