public function getMiddlewarePriorityForMiddleware( $middleware ) {
		if ( is_array( $middleware ) ) {
			$middleware = $middleware[0];
		}

		$increasing_priority = array_reverse( $this->middleware_priority );
		$priority = array_search( $middleware, $increasing_priority );
		return $priority !== false ? (int) $priority : -1;
	}
public function getMiddlewarePriorityForMiddleware( $middleware ) {
		if ( is_array( $middleware ) ) {
			$middleware = $middleware[0];
		}

		$increasing_priority = array_reverse( $this->middleware_priority );
		$priority = array_search( $middleware, $increasing_priority );
		return $priority !== false ? (int) $priority : -1;
	}
public function getMiddlewarePriorityForMiddleware ( $ middleware ) { if ( is_array ( $ middleware ) ) { $ middleware = $ middleware [ 0 ] ; } $ increasing_priority = array_reverse ( $ this -> middleware_priority ) ; $ priority = array_search ( $ middleware , $ increasing_priority ) ; return $ priority !== false ? ( int ) $ priority : - 1 ; }
Get priority for a specific middleware.
This is in reverse compared to definition order.
Middleware with unspecified priority will yield -1.

@param  string|array $middleware
@return integer
Get priority for a specific middleware . This is in reverse compared to definition order . Middleware with unspecified priority will yield - 1 .