Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org


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


  • $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


File: wp-graphql/src/Data/UserMutation.php


Extending mutation for user