graphql_resolve_menu_item

[!WARNING] This hook has been deprecated since v1.22.0 and should not be used for new integrations. Use graphql_pre_resolve_menu_item_connected_node instead.

apply_filters_deprecated( 'graphql_resolve_menu_item', [ $resolved_object, $args, $context, $info, $object_id, $object_type, ], '1.22.0', 'graphql_pre_resolve_menu_item_connected_node', __( 'This will be removed in the next version of WPGraphQL. Use the `graphql_pre_resolve_menu_item_connected_node` filter on `connectedNode` instead.', 'wp-graphql' ) );

No description available.

  • Type: filter
  • Group: Uncategorized
  • Since: 0.0.30
  • Source File: plugins/wp-graphql/src/Deprecated.php

Lifecycle

  • Deprecated in: 1.22.0
  • Replacement: graphql_pre_resolve_menu_item_connected_node

Parameters

  • $resolved_object (\WP_Post|\WP_Term): Post or term connected to MenuItem
  • $args (array<string,mixed>): Array of arguments input in the field as part of the GraphQL query
  • $context (\WPGraphQL\AppContext): Object containing app context that gets passed down the resolve tree
  • $info (\GraphQL\Type\Definition\ResolveInfo): Info about fields passed down the resolve tree
  • $object_id (int): Post or term ID of connected object
  • $object_type (string): Type of connected object (“post_type” or “taxonomy”)

Source

apply_filters_deprecated(
						'graphql_resolve_menu_item',
						[
							$resolved_object,
							$args,
							$context,
							$info,
							$object_id,
							$object_type,
						],
						'1.22.0',
						'graphql_pre_resolve_menu_item_connected_node',
						__( 'This will be removed in the next version of WPGraphQL. Use the `graphql_pre_resolve_menu_item_connected_node` filter on `connectedNode` instead.', 'wp-graphql' )
					);