graphql_user_object_mutation_update_additional_data

do_action( 'graphql_user_object_mutation_update_additional_data', $user_id, $input, $mutation_name, $context, $info );

Run an action after the additional data has been updated. This is a great spot to hook into to update additional data related to users, such as setting relationships, updating additional usermeta, or sending emails to Kevin… whatever you need to do with the userObject.

  • Type: action
  • Group: Model Layer
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Data/UserMutation.php

Parameters

  • $user_id (int): The ID of the user being mutated
  • $input (array<string,mixed>): The input for the mutation
  • $mutation_name (string): The name of the mutation (ex: create, update, delete)
  • $context (\WPGraphQL\AppContext): The AppContext passed down the resolve tree
  • $info (\GraphQL\Type\Definition\ResolveInfo): The ResolveInfo passed down the Resolve Tree

Source

do_action( 'graphql_user_object_mutation_update_additional_data', $user_id, $input, $mutation_name, $context, $info );