graphql_object_fields

apply_filters( 'graphql_object_fields', $fields, $type_name, $this, $this->type_registry );

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

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

Parameters

  • $fields (array<string,mixed>): The array of fields for the object config
  • $type_name (string): The name of the object type
  • $wp_object_type (\WPGraphQL\Type\WPObjectType): The WPObjectType Class
  • $type_registry (\WPGraphQL\Registry\TypeRegistry): The Type Registry

Source

apply_filters( 'graphql_object_fields', $fields, $type_name, $this, $this->type_registry );

Recipes