Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org


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.


  • $query_args (array): Array of mapped query args
  • $where_args (array): Array of query “where” args
  • $source (mixed): The query results of the query calling this relation
  • $all_args (array): All of the query arguments (not just the “where” args)
  • $context (AppContext): The AppContext object
  • $info (ResolveInfo): The ResolveInfo object