graphql_interface_fields

apply_filters( 'graphql_interface_fields', $fields, $type_name );

Filter all interface 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

  • Type: filter
  • Group: Schema Registration
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Type/WPInterfaceType.php

Parameters

  • $fields (array<string,array<string,mixed>>): The array of fields for the object config
  • $type_name (string): The name of the object type.

Source

apply_filters( 'graphql_interface_fields', $fields, $type_name );