learndash_essay_save_grading_response_allowed_html

apply_filters( 'learndash_essay_save_grading_response_allowed_html',  array $allowed_tags )

Filters list of allowed html tags essay grading response while saving it to post meta.


Description #

Used in allowed_html paramter of wp_kses function.


Parameters #

$allowed_tags

(array) An array of allowed HTML tags in essay grading response.


Source #

File: includes/admin/classes-posts-edits/class-learndash-admin-essay-edit.php


Examples #

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

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