Filter the config of WPUnionType
apply_filters( 'graphql_wp_union_type_config', array $config, WPUnionType $union_type );
Params
- $config (array): Array of configuration options passed to the WPUnionType when instantiating a new type
- $union_type (WPUnionType): The instance of the WPUnionType class