跳转到主要内容

0277-filters-pre-graphql-execute-request


title: pre_graphql_execute_request hookType: filter hookGroup: request-lifecycle plugin: wp-graphql

pre_graphql_execute_request

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

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