graphql_is_graphql_http_request

apply_filters( 'graphql_is_graphql_http_request', $is_graphql_http_request );

Filter whether the request is a GraphQL HTTP Request. Default is false, as the majority of WordPress requests are NOT GraphQL requests (at least today that’s true 😆). The request has to “prove” that it is indeed an HTTP request via HTTP for this to be true. Different servers might have different needs to determine whether a request is a GraphQL request.

  • Type: filter
  • Group: Request Lifecycle
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Router.php

Parameters

  • $is_graphql_http_request (bool): Whether the request is a GraphQL HTTP Request. Default false.

Source

apply_filters( 'graphql_is_graphql_http_request', $is_graphql_http_request );