Last active
December 9, 2015 21:38
-
-
Save abackstrom/4331659 to your computer and use it in GitHub Desktop.
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
<?php | |
// | |
// The following code exists in the public domain. No warranty is expressed or implied. | |
// | |
/** | |
* Return the priority of the currently-running filter. | |
*/ | |
function current_filter_priority() { | |
global $wp_filter; | |
return key($wp_filter[current_filter()]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment