跳转到主要内容

0096-actions-graphql-wp-union-type


title: graphql_wp_union_type hookType: action hookGroup: schema-registration plugin: wp-graphql

graphql_wp_union_type

do_action( 'graphql_wp_union_type', $config, $this );

Fires after a WPUnionType has been configured and before registration.

  • Type: action
  • Group: Schema Registration
  • Since: 0.0.30
  • Source File: plugins/wp-graphql/src/Type/WPUnionType.php

Parameters

  • $config (UnionConfig): The union type configuration.
  • $instance (\WPGraphQL\Type\WPUnionType): The WPUnionType instance.

Source

do_action( 'graphql_wp_union_type', $config, $this );