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

graphql_wp_union_type

Run an action when the WPObjectType is instantiating

Params

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

Source

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