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

graphql_input_fields

Filter all object fields, passing the $typename as a param.

This is useful when several different types need to be easily filtered at once. . .for example, if ALL types with a field of a certain name needed to be adjusted, or something to that tune

Params

  • $fields (array): The array of fields for the object config
  • $type_name (string): The name of the object type
  • $config (array): Array of config values
  • $type_registry (TypeRegistry): The TypeRegistry instance