graphql_wp_object_type

Run an action when the WPObjectType is instantiating

do_action( 'graphql_wp_object_type', array $config, WPGraphQL\Type\WPObjectType $object_type );

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