diff --git a/gp-media-library/gpml-auto-add-terms.php b/gp-media-library/gpml-auto-add-terms.php new file mode 100644 index 000000000..00bcd03a1 --- /dev/null +++ b/gp-media-library/gpml-auto-add-terms.php @@ -0,0 +1,24 @@ + array( + 'Red', + 'Green', + 'Blue', + ), + 'post_tag' => array( + 'Small', + 'Medium', + 'Large', + ), + ); + $gpml_media_data['post_data']['tax_input'] = $terms; + return $gpml_media_data; +}, 10, 2 );