graphql_interface_resolve_type
apply_filters( 'graphql_interface_resolve_type', $type, $obj, $this );
Filter the resolve type method for all interfaces
- Type: filter
- Group: Schema Registration
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Type/WPInterfaceType.php
Parameters
$type(mixed): The Type to resolve to, based on the object being resolved.$obj(mixed): The object being resolved.$wp_interface_type(\WPGraphQL\Type\WPInterfaceType): The WPInterfaceType instance.
Source
apply_filters( 'graphql_interface_resolve_type', $type, $obj, $this );
Related
WPInterfaceType::__construct()inplugins/wp-graphql/src/Type/WPInterfaceType.php:82