learndash_quiz_import_post_meta_keys

apply_filters( 'learndash_quiz_import_post_meta_keys',  array $post_meta_keys )

Filters quiz post meta keys to be imported.


Description #


Parameters #

$post_meta_keys

(array) An array of quiz post meta keys for import.


Source #

File: includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_Import.php


Examples #

 <?php
/**
 * Example usage for learndash_quiz_import_post_meta_keys filter.
 */
add_filter(
	'learndash_quiz_import_post_meta_keys',
	function( $post_meta_import_keys = array() ) {
		// Here added/remove any post meta keys for the import.

		// Always return $post_meta_import_keys
		return $post_meta_import_keys;
	},
	30,
	1
);