[wp-trac] [WordPress Trac] #33886: Need ability to determine the priority at which an action hook or filter is being run
WordPress Trac
noreply at wordpress.org
Tue Jan 19 00:37:44 UTC 2016
#33886: Need ability to determine the priority at which an action hook or filter is
being run
-------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by lgedeon):
I think this might get what you need.
{{{#!php
<?php
function current_filter_priority() {
global $wp_filter;
return key( $wp_filter[current_filter()] );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33886#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list