graphql_insert_term

do_action( 'graphql_insert_term', $term['term_id'], $taxonomy, $args, $mutation_name, $context, $info );

Fires after a single term is created or updated via a GraphQL mutation

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

Parameters

  • $term_id (int): Inserted term object
  • $taxonomy (\WP_Taxonomy): The taxonomy of the term being updated
  • $args (array<string,mixed>): The args used to insert the term
  • $mutation_name (string): The name of the mutation being performed
  • $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_insert_term', $term['term_id'], $taxonomy, $args, $mutation_name, $context, $info );