graphql_register_initial_types
do_action( 'graphql_register_initial_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.3
- Source File:
plugins/wp-graphql/src/Registry/TypeRegistry.php
Parameters
$registry(\WPGraphQL\Registry\TypeRegistry): Instance of the TypeRegistry
Source
do_action( 'graphql_register_initial_types', $type_registry );
Related
TypeRegistry::init_type_registry()inplugins/wp-graphql/src/Registry/TypeRegistry.php:310