graphql_update_term

do_action( 'graphql_update_term', $existing_term->term_id, $taxonomy, $args, $mutation_name, $context, $info );

Fires an action when a term is updated via a GraphQL Mutation

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

Parameters

  • $term_id (int): The ID of the term object that was mutated
  • $taxonomy (\WP_Taxonomy): The taxonomy of the term being updated
  • $args (array<string,mixed>): The args used to update the term
  • $mutation_name (string): The name of the mutation being performed (create, update, delete, etc)
  • $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_update_term', $existing_term->term_id, $taxonomy, $args, $mutation_name, $context, $info );