Skip to content

Commit

Permalink
Add filter for the create_duplicate use_filters option
Browse files Browse the repository at this point in the history
  • Loading branch information
goncaloasimoes committed Oct 18, 2022
1 parent b1b3169 commit 0216915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/post-duplicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function create_duplicate_for_rewrite_and_republish( WP_Post $post ) {
'copy_excerpt' => true,
'copy_author' => true,
'copy_menu_order' => true,
'use_filters' => true,
'use_filters' => \apply_filters( 'duplicate_post_create_duplicate_use_filters', false ),
];
$defaults = $this->get_default_options();
$options = \wp_parse_args( $options, $defaults );
Expand Down

0 comments on commit 0216915

Please sign in to comment.