From 788a7722b6f1dfc4c30f823d4d67ede604cfb9e6 Mon Sep 17 00:00:00 2001 From: Benoit Bouchaud Date: Wed, 6 Apr 2022 14:18:39 +0200 Subject: [PATCH] Hook to exlude taxonomies on post republish --- src/post-republisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/post-republisher.php b/src/post-republisher.php index eca6ee3c3..108fbb6ae 100644 --- a/src/post-republisher.php +++ b/src/post-republisher.php @@ -345,7 +345,7 @@ protected function republish_post_taxonomies( $post ) { $copy_taxonomies_options = [ 'taxonomies_excludelist' => [], - 'use_filters' => false, + 'use_filters' => apply_filters('republish_post_taxonomies_use_filters', false), 'copy_format' => true, ]; $this->post_duplicator->copy_post_taxonomies( $original_post_id, $post, $copy_taxonomies_options );