Filter: sensei_duplicate_post_args

apply_filters( 'sensei_duplicate_post_args', $new_post, $post ) → {array}

Filter arguments for wp_insert_post when duplicating a Sensei post. This may be a Course, Lesson, or Quiz.

Parameters:
Name Type Description
$new_post array

The arguments for duplicating the post.

$post WP_Post

The original post being duplicated.

Since:
  • 3.11.0
Source:
Returns:

The new arguments to be handed to wp_insert_post.

Type
array