graphql_user_object_mutation_update_additional_data
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
Params
- $user_id (int): The ID of the user being mutated
- $input (array): The input for the mutation
- $mutation_name (string): The name of the mutation (ex: create, update, delete)
- $context (AppContext): The AppContext passed down the Resolve tree
- $info (ResolveInfo): The ResolveInfo passed down the Resolve tree
Source
File: wp-graphql/src/Data/UserMutation.php
Example
Extending mutation for user