public function get_listener_priority( $event_name, $listener ) {

		if ( ! is_callable( $listener, true ) ) {
			throw new InvalidListenerException( '$listener must be callable.' );
		}

		$priority = has_filter( $event_name, $listener );

		if ( false === $priority ) {
			return null;
		}

		return $priority;
	}
public function get_listener_priority( $event_name, $listener ) {

		if ( ! is_callable( $listener, true ) ) {
			throw new InvalidListenerException( '$listener must be callable.' );
		}

		$priority = has_filter( $event_name, $listener );

		if ( false === $priority ) {
			return null;
		}

		return $priority;
	}
public function get_listener_priority ( $ event_name , $ listener ) { if ( ! is_callable ( $ listener , true ) ) { throw new InvalidListenerException ( '$listener must be callable.' ) ; } $ priority = has_filter ( $ event_name , $ listener ) ; if ( false === $ priority ) { return null ; } return $ priority ; }
Get the listener priority for a given event.

Lower priority listeners are evaluated earlier.

@since 1.0

@param string   $event_name The fully-qualified event name.
@param callable $listener   The listener to check against.

@return int|null
Get the listener priority for a given event .