graphql_register_initial_types

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

do_action( 'graphql_register_initial_types', WPGraphQL\Registry\TypeRegistry $type_registry );

Params

  • $type_registry (WPGraphQL\Registry\TypeRegistry): The registry of Types used in the GraphQL Schema

Source

File: wp-graphql/src/Registry/TypeRegistry.php