graphql_media_item_insert_post_args
apply_filters( 'graphql_media_item_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/MediaItemMutation.php
Parameters
$insert_post_args(array<string,mixed>): The array of $input_post_args that will be passed to wp_insert_attachment$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, update, delete)
Source
apply_filters( 'graphql_media_item_insert_post_args', $insert_post_args, $input, $post_type_object, $mutation_name );
Related
MediaItemMutation::prepare_media_item()inplugins/wp-graphql/src/Data/MediaItemMutation.php:106