graphql_query_log_entry

apply_filters( 'graphql_query_log_entry', $defaults, $query, $index, $this );

Filter a single saved query row after default normalization.

  • Type: filter
  • Group: Debugging and Instrumentation
  • Since: 2.12.0
  • Source File: plugins/wp-graphql/src/Utils/QueryLog.php

Parameters

  • $parts (array{sql: string, time: float, stack: string}): Normalized SQL, elapsed time, and stack/debug string.
  • $query (mixed): Raw row from $wpdb->queries.
  • $index (int): Index of this query in the log.
  • $query_log (\WPGraphQL\Utils\QueryLog): The QueryLog instance.

Source

apply_filters( 'graphql_query_log_entry', $defaults, $query, $index, $this );