do_action( 'learndash_essay_all_quiz_data_updated', int $quiz_id, int $question_id, array $updated_scoring, WP_Post $essay )
Fires after all the quiz data is updated.
Description #
Parameters #
- $quiz_id
-
(int) Quiz ID.
- $question_id
-
(int) Question_id.
- $updated_scoring
-
(array) An array of updated essay score data.
- $essay
-
(WP_Post) WP_Post object for essay.
Source #
File: includes/admin/classes-posts-edits/class-learndash-admin-essay-edit.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. |