learndash_new_essay_submitted

do_action( 'learndash_new_essay_submitted',  int $essay_id,  array $essay_arg )

Fires after a new essay is submitted.


Description #


Parameters #

$essay_id

(int) The new Essay ID created after essay submission.

$essay_arg

(array) An array of essay arguments.


Source #

File: includes/quiz/ld-quiz-essays.php


Examples #

 <?php
/**
 * Example usage for learndash_new_essay_submitted action.
 */
add_action(
	'learndash_new_essay_submitted',
	function( $essay_id, $essay_arg ) {
		// May add any custom logic using $essay_id, $essay_arg

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