Created
February 15, 2013 13:04
-
-
Save michaeluno/4960261 to your computer and use it in GitHub Desktop.
WordPress function. Retrieves the number of callbacks registered to the given hook.
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
function GetNumberOfCallbacks( $strHook='' ) { | |
global $wp_filter; | |
if( empty( $strHook ) || !isset( $wp_filter[$strHook] ) ) return; | |
return count( $wp_filter[$strHook] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment