learndash_duplicate_post_array

apply_filters( 'learndash_duplicate_post_array',  array $dest_post )

Filters duplicate post array arguments.


Description #

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


Parameters #

$dest_post

(array) An array of duplicate post arguments.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_duplicate_post_array filter.
 */
add_filter(
	'learndash_duplicate_post_array',
	function( $dest_post ) {
		// May add any custom logic using $dest_post.

		// Always return $dest_post.
		return $dest_post;
	}
);