apply_filters( 'learndash_quiz_export_post_keys', array $post_export_keys, int $quiz_post_id )
Filters list of post keys to be exported.
Contents
Description #
Parameters #
- $post_export_keys
-
(array) An array of post export keys.
- $quiz_post_id
-
(int) Quiz post ID.
Source #
File: includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_Export.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_quiz_export_post_keys filter.
*/
add_filters(
'learndash_quiz_export_post_keys',
function( $post_export_keys = array(), $quiz_post_id = 0 ) {
// Here added/remove any post keys for the export.
// Always return $post_export_keys
return $post_export_keys;
},
30,
2
);