do_action( 'learndash_essay_all_quiz_data_updated', integer $quiz_id, integer $question_id, array $updated_scoring_data, object $essay_post )
Perform action after all the quiz data is updated
Description #
Parameters #
- $quiz_id
-
(integer) Quiz Post ID
- $question_id
-
(integer) Question Post ID
- $updated_scoring_data
-
(array) Essay updated scoring data
- $essay_post
-
(object) Essay WP_Post object
Source #
File: includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_essay_all_quiz_data_updated action.
*/
add_action(
'learndash_essay_all_quiz_data_updated',
function( $quiz_id, $question_id, $updated_scoring, $essay ) {
// May add any custom logic using $quiz_id, $question_id, $updated_scoring, $essay
},
10,
4
);
Changelog #
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |