graphql_wp_union_type

Run an action when the WPObjectType is instantiating

do_action( 'graphql_wp_union_type', array $config, WPGraphQL\Type\WPUnionType $union_type );

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