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

graphql_media_item_insert_post_args

Filter the $insert_post_args

Params

  • $insert_post_args (array): The array of $input_post_args that will be passed to wp_insert_attachment
  • $input (array): 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 (string): The type of mutation being performed (create, update, delete)