graphql_map_input_fields_to_get_terms
apply_filters( 'graphql_map_input_fields_to_get_terms', $query_args, $where_args, $this->taxonomy, $this->source, $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/TermObjectConnectionResolver.php
Parameters
$query_args(array<string,mixed>): Array of mapped query args$where_args(array<string,mixed>): Array of query “where” args$taxonomy(array<string>|string): The name of the taxonomy$source(mixed): The query results$all_args(array<string,mixed>): All of the query arguments (not just the “where” args)$context(\WPGraphQL\AppContext): The AppContext object$info(\GraphQL\Type\Definition\ResolveInfo): The ResolveInfo object
Source
apply_filters( 'graphql_map_input_fields_to_get_terms', $query_args, $where_args, $this->taxonomy, $this->source, $args, $this->context, $this->info );
Related
TermObjectConnectionResolver::sanitize_input_fields()inplugins/wp-graphql/src/Data/Connection/TermObjectConnectionResolver.php:236