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

graphql_insert_post_object

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

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