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

graphql_wp_object_type

Run an action when the WPObjectType is instantiating

Params

  • $config (array): Array of configuration options passed to the WPObjectType when instantiating a new type
  • $object_type (WPGraphQL\Type\WPObjectType): The instance of the WPObjectType class

Source

File: wp-graphql/src/Type/WPObjectType.php