public function remove_listener( $event_name, $listener, $priority = self::PRIORITY ) {

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

		if ( ! is_int( $priority ) ) {
			throw new \InvalidArgumentException( '$priority must be an int.' );
		}

		remove_filter( $event_name, $listener, $priority );

		return $this;
	}
public function remove_listener( $event_name, $listener, $priority = self::PRIORITY ) {

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

		if ( ! is_int( $priority ) ) {
			throw new \InvalidArgumentException( '$priority must be an int.' );
		}

		remove_filter( $event_name, $listener, $priority );

		return $this;
	}
public function remove_listener ( $ event_name , $ listener , $ priority = self :: PRIORITY ) { if ( ! is_callable ( $ listener , true ) ) { throw new InvalidListenerException ( '$listener must be callable.' ) ; } if ( ! is_int ( $ priority ) ) { throw new \ InvalidArgumentException ( '$priority must be an int.' ) ; } remove_filter ( $ event_name , $ listener , $ priority ) ; return $ this ; }
Remove an event listener for a given event.

@since 1.0

@param string   $event_name The fully-qualified event name to remove a listener from.
@param callable $listener   The listener to be removed.
@param int      $priority   The priority of the listener.

@return self
Remove an event listener for a given event .