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 );
Related
TypeRegistry::init_type_registry()inplugins/wp-graphql/src/Registry/TypeRegistry.php:712
Recipes
- Add Edit Link to All Post Types
- Add field for unencoded content
- Add field to output URLs for Sitemap
- Add WP Admin Color Schemes to WPGraphQL
- List of Key Values
- Page Siblings Connection
- Popular Posts
- Register a basic Mutation
- Register Connection to Attached Media
- Register field as a list of strings
- Register GraphQL Field with Argument
- Register object and field for custom list of users
- Tag to Content Node Connection