public function add_query_vars( $vars = array() ) {
		if ( ! empty( $this->rewrite_endpoint ) ) {
			$keys = array_keys( $this->rewrite_endpoint );
			return array_merge( $vars, $keys );
		}
		return $vars;
	}