From 07f049218f23ed8cc83e0b6ae036aac43ab4204d Mon Sep 17 00:00:00 2001 From: sebastienserre Date: Fri, 20 Mar 2020 12:05:34 +0100 Subject: [PATCH] append term on Taxo Package --- lib/class-importer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-importer.php b/lib/class-importer.php index b83e597..29f5f69 100644 --- a/lib/class-importer.php +++ b/lib/class-importer.php @@ -713,7 +713,7 @@ public function import_item( array $data, $parent_post_id = 0, $import_ignored = } } $added_term_relationship = did_action( 'added_term_relationship' ); - wp_set_object_terms( $post_id, $package_term_ids, $this->taxonomy_package ); + wp_set_object_terms( $post_id, $package_term_ids, $this->taxonomy_package, true ); if ( did_action( 'added_term_relationship' ) > $added_term_relationship ) { $anything_updated[] = true; }