Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

graphql_response_status_code

Filter the $status_code before setting the headers

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