Browse: Home / Hooks /

learndash_new_essay_submission_args

apply_filters( 'learndash_new_essay_submission_args',  array $essay_args )

Filters new essay submission wp_insert_post arguments.


Description #


Parameters #

$essay_args

(array) An array of essay arguments.


Source #

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


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_new_essay_submission_args filter.
 */
add_filter(
	'learndash_new_essay_submission_args',
	function( $essay_args ) {
		// May add any custom logic using $essay_args.

		// Always return $essay_args.
		return $essay_args;
	}
);