learndash_essay_all_quiz_data_updated

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 #

 <?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

		echo '<div>Custom content or markup</div>';
	},
	10,
	4
);