graphql_comment_insert_post_args

Filter the $insert_post_args

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

Params

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