graphql_media_item_insert_post_args
Filter the $insert_post_args
apply_filters( 'graphql_media_item_insert_post_args', array $insert_post_args, array $input, WP_Post_Type $post_type_object, string $mutation );
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)