graphql_map_input_fields_to_wp_user_query
apply_filters( 'graphql_map_input_fields_to_wp_user_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 WP_User_Query
- Type: filter
- Group: Connections
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Data/Connection/UserConnectionResolver.php
Parameters
$query_args(array<string,mixed>): The mapped query args$args(array<string,mixed>): The query “where” args$source(mixed): The query results of the query calling this relation$all_args(array<string,mixed>): Array of all the query args (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_wp_user_query', $query_args, $args, $this->source, $this->get_args(), $this->context, $this->info );
Related
UserConnectionResolver::sanitize_input_fields()inplugins/wp-graphql/src/Data/Connection/UserConnectionResolver.php:261