graphql_map_input_fields_to_get_terms

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.

apply_filters( 'graphql_map_input_fields_to_get_terms', array $query_args, array $where_args, string $taxonomy, mixed $source, array $all_args, AppContext $context, ResolveInfo $info );

Params

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