graphql_register_types

do_action( 'graphql_register_types', $type_registry );

Fire an action as the type registry is initialized. This executes before the graphql_register_types action to allow for earlier hooking

  • Type: action
  • Group: Schema Registration
  • Since: 0.4.0
  • Source File: plugins/wp-graphql/src/Registry/TypeRegistry.php

Parameters

  • $registry (\WPGraphQL\Registry\TypeRegistry): Instance of the TypeRegistry

Source

do_action( 'graphql_register_types', $type_registry );

Recipes