Browse: Home / Hooks /


apply_filters( 'learndash_duplicate_post_array',  array $dest_post,  WP_Post $source_post )

Filters duplicate post array arguments.

Description #

Used in duplicate_post function to create duplicate post of any post.

Parameters #


(array) An array of duplicate post arguments.


(WP_Post) Source post object.

Source #

File: includes/import/class-ld-import-post.php

Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 * Example usage for learndash_duplicate_post_array filter.
	function( $dest_post ) {
		// May add any custom logic using $dest_post.

		// Always return $dest_post.
		return $dest_post;