# 0277-filters-pre-graphql-execute-request

<!--
This file is auto-generated by scripts/hooks/generate-hook-docs.js.
Do not edit manually.
-->
---
title: pre_graphql_execute_request
hookType: filter
hookGroup: request-lifecycle
plugin: wp-graphql
---

# pre_graphql_execute_request

```php
apply_filters( 'pre_graphql_execute_request', null, $this );
```

Filter this to be anything other than null to short-circuit HTTP execution.

- **Type:** filter
- **Group:** Request Lifecycle
- **Since:** 1.6.6
- **Source File:** `plugins/wp-graphql/src/Request.php`

## Parameters

- `$response` (`mixed|null`): The response to return early. Null continues execution.
- `$request` (`self`): The request instance being executed.

## Source

- [`plugins/wp-graphql/src/Request.php:779`](https://github.com/wp-graphql/wp-graphql/blob/main/plugins/wp-graphql/src/Request.php#L779)

```php
apply_filters( 'pre_graphql_execute_request', null, $this );
```

## Related

- `Request::execute()` in [`plugins/wp-graphql/src/Request.php:672`](https://github.com/wp-graphql/wp-graphql/blob/main/plugins/wp-graphql/src/Request.php#L672)
- `Request::execute_http()` in [`plugins/wp-graphql/src/Request.php:779`](https://github.com/wp-graphql/wp-graphql/blob/main/plugins/wp-graphql/src/Request.php#L779)