graphql_comment_insert_post_args

apply_filters( 'graphql_comment_insert_post_args', $output_args, $input, $mutation_name );

Filter the $insert_post_args

  • Type: filter
  • Group: Model Layer
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Data/CommentMutation.php

Parameters

  • $output_args (array<string,mixed>): The array of $input_post_args that will be passed to wp_new_comment
  • $input (array<string,mixed>): The data that was entered as input for the mutation
  • $mutation_name (string): The type of mutation being performed ( create, edit, etc )

Source

apply_filters( 'graphql_comment_insert_post_args', $output_args, $input, $mutation_name );