diff --git a/src/post-duplicator.php b/src/post-duplicator.php index addcd9c26..3c9927156 100644 --- a/src/post-duplicator.php +++ b/src/post-duplicator.php @@ -157,7 +157,15 @@ public function create_duplicate_for_rewrite_and_republish( WP_Post $post ) { 'copy_excerpt' => true, 'copy_author' => true, 'copy_menu_order' => true, - 'use_filters' => false, + /** + * Filters the option `use_filters` during post duplicate creation for rewrite and + * republish. + * + * @param bool $use_filters Default is false. + * + * @return bool + */ + 'use_filters' => \apply_filters( 'duplicate_post_create_duplicate_use_filters', false ), ]; $defaults = $this->get_default_options(); $options = \wp_parse_args( $options, $defaults );