graphql_post_object_insert_post_args

apply_filters( 'graphql_post_object_insert_post_args', $insert_post_args, $input, $post_type_object, $mutation_name );

Filter the $insert_post_args

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

Parameters

  • $insert_post_args (array<string,mixed>): The array of $input_post_args that will be passed to wp_insert_post
  • $input (array<string,mixed>): The data that was entered as input for the mutation
  • $post_type_object (\WP_Post_Type): The post_type_object that the mutation is affecting
  • $mutation_type (string): The type of mutation being performed (create, edit, etc)

Source

apply_filters( 'graphql_post_object_insert_post_args', $insert_post_args, $input, $post_type_object, $mutation_name );