WP_Hook::current_priority(): int|false

In this article

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

Return

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

Source

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

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

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.