0081-actions-graphql-register-initial-types
title: graphql_register_initial_types hookType: action hookGroup: schema-registration plugin: wp-graphql
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:312
这篇文档对你有帮助吗?
谢谢你的反馈!