WP_Hook::current_priority

Advertisement

Summery Summery

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

Syntax Syntax

WP_Hook::current_priority()

Return Return

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

Source Source

File: wp-includes/class-wp-hook.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply