Skip to content

Commit 0216915

Browse files
Add filter for the create_duplicate use_filters option
1 parent b1b3169 commit 0216915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/post-duplicator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function create_duplicate_for_rewrite_and_republish( WP_Post $post ) {
157157
'copy_excerpt' => true,
158158
'copy_author' => true,
159159
'copy_menu_order' => true,
160-
'use_filters' => true,
160+
'use_filters' => \apply_filters( 'duplicate_post_create_duplicate_use_filters', false ),
161161
];
162162
$defaults = $this->get_default_options();
163163
$options = \wp_parse_args( $options, $defaults );

0 commit comments

Comments
 (0)