learndash_disable_advance_quiz

apply_filters( 'learndash_disable_advance_quiz',  boolean $disable_advanced_quiz,  int $post_id )

Filters whether to disable advanced quiz or not.


Description #


Parameters #

$disable_advanced_quiz

(boolean) Whether to disable advanced quiz.

$post_id

(int) Post ID.


Source #

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


Examples #

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

		// Always return $disable_advanced_quiz.
		return $disable_advanced_quiz;
	},
	10,
	2
);