WP_Hook::current_priority()
Return the current priority level of the currently running iteration of the hook.
Method of the class: WP_Hook{}
No Hooks.
Return
Int|false
. If the hook is running, return the current priority level. If it isn't running, return false.
Usage
$WP_Hook = new WP_Hook(); $WP_Hook->current_priority();
Changelog
Since 4.7.0 | Introduced. |
WP_Hook::current_priority() WP Hook::current priority code WP 6.7.1
public function current_priority() { if ( false === current( $this->iterations ) ) { return false; } return current( current( $this->iterations ) ); }