graphql_map_input_fields_to_wp_comment_query
apply_filters( 'graphql_map_input_fields_to_wp_comment_query', $query_args, $args, $this->source, $this->get_args(), $this->context, $this->info );
Filter the input fields This allows plugins/themes to hook in and alter what $args should be allowed to be passed from a GraphQL Query to the get_terms query
- Type: filter
- Group: Connections
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Data/Connection/CommentConnectionResolver.php
Parameters
$query_args(array<string,mixed>): The mapped query args to send to WP_Comment_Query.$args(array<string,mixed>): The incoming GraphQL where args before mapping.$source(mixed): The source node passed down the resolve tree.$all_args(array<string,mixed>): All GraphQL args provided to the connection field.$context(\WPGraphQL\AppContext): The AppContext passed down the resolve tree.$info(\GraphQL\Type\Definition\ResolveInfo): ResolveInfo for the current field.
Source
apply_filters( 'graphql_map_input_fields_to_wp_comment_query', $query_args, $args, $this->source, $this->get_args(), $this->context, $this->info );
Related
CommentConnectionResolver::sanitize_input_fields()inplugins/wp-graphql/src/Data/Connection/CommentConnectionResolver.php:304