graphql_response_status_code

Filter the $status_code before setting the headers

apply_filters( 'graphql_response_status_code', int $http_status_code, array $response, array $graphql_results, string $query, string $operation_name, array $variables, WP_User $user );

Params

  • $http_status_code (int): The status code to apply to the headers
  • $response (array): The response of the GraphQL Request
  • $graphql_results (array): The results of the GraphQL execution
  • $query (string): The GraphQL query
  • $operation_name (string): The operation name of the GraphQL Request
  • $variables (array): The variables applied to the GraphQL Request
  • $user (WP_User): The current user object