GC_Hook::current_priority()

最后更新于:2021-11-27 21:11:24

GC_Hook::current_priority()

响应 the current priority level of the currently running iteration of the hook.

响应

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

源文件

文件: gc-includes/class-gc-hook.php

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

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