graphql_resolve_revision_meta_from_parent
apply_filters( 'graphql_resolve_revision_meta_from_parent', true, $object_id, $meta_key, $single );
Filters whether to resolve revision metadata from the parent node by default.
- Type: filter
- Group: Model Layer
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Utils/Preview.php
Parameters
$should(bool): Whether to resolve using the parent object. Default true.$object_id(int): The ID of the object to resolve meta for$meta_key(?string): The key for the meta to resolve$single(?bool): Whether a single value should be returned
Source
apply_filters( 'graphql_resolve_revision_meta_from_parent', true, $object_id, $meta_key, $single );
Related
Preview::filter_post_meta_for_previews()inplugins/wp-graphql/src/Utils/Preview.php:40