graphql_insert_post_object

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

do_action( 'graphql_insert_post_object', int $post_id, WP_Post_Type $post_type_object, array $post_args, string $mutation_name );

Params

  • $post_id (int): Inserted post ID
  • $post_type_object (WP_Post_Type): The Post Type object for the post being mutated
  • $args (array): The args used to insert the term
  • $mutation_name (string): The name of the mutation being performed

Source

File: wp-graphql/src/Mutation/PostObjectUpdate.php