learndash_quiz_export_post_meta_keys

apply_filters( 'learndash_quiz_export_post_meta_keys',  array $post_meta_keys,  int $quiz_post_id )

Filters quiz post meta keys to be imported.


Description #


Parameters #

$post_meta_keys

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

$quiz_post_id

(int) Quiz post ID.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_quiz_export_post_meta_keys filter.
 */
add_filters(
	'learndash_quiz_export_post_meta_keys',
	function( $post_meta_export_keys = array(), $quiz_post_id = 0 ) {
		// Here added/remove any post meta keys for the export.

		// Always return $post_meta_export_keys
		return $post_meta_export_keys;
	},
	30,
	2
);