WordPress at Your Fingertips
function is not described

WP_Hook::current_priority() public WP 4.7.0

Return the current priority level of the currently running iteration of the hook.

{} It's a method of the class: WP_Hook{}

No Hooks.


Int|false. If the hook is running, return the current priority level. If it isn't running, return false.


$WP_Hook = new WP_Hook();


Since 4.7.0 Introduced.

Code of WP_Hook::current_priority() WP 5.9

public function current_priority() {
	if ( false === current( $this->iterations ) ) {
		return false;

	return current( current( $this->iterations ) );