graphql_response_status_code

apply_filters( 'graphql_response_status_code', self::$http_status_code, $_deprecated, $response, $query, $operation_name, $variables, $user );

Filter the $status_code before setting the headers

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

Parameters

  • $status_code (int): The status code to apply to the headers
  • $response (mixed[]|\GraphQL\Executor\ExecutionResult): The response of the GraphQL Request
  • $_deprecated (mixed[]|\GraphQL\Executor\ExecutionResult): Use $response instead.
  • $query (string): The GraphQL query
  • $operation_name (string): The operation name of the GraphQL Request
  • $variables (?array<string,mixed>): The variables applied to the GraphQL Request
  • $user (?\WP_User): The current user object

Source

apply_filters( 'graphql_response_status_code', self::$http_status_code, $_deprecated, $response, $query, $operation_name, $variables, $user );