graphql_resolve_revision_meta_from_parent
apply_filters( 'graphql_resolve_revision_meta_from_parent', $resolve_from_parent_default, $object_id, $meta_key, $single );
Filters whether to resolve revision metadata from the parent node.
- 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. Defaults to true, except for meta keys WordPress stores on revisions (registered withrevisions_enabled, or added via thewp_post_revision_meta_keysfilter), which default to false so they resolve from the revision’s own value. Return false to resolve a key from the revision, or true to force resolution from the parent.$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', $resolve_from_parent_default, $object_id, $meta_key, $single );
Related
Preview::filter_post_meta_for_previews()inplugins/wp-graphql/src/Utils/Preview.php:192