show_quiz_continue_buttom_on_fail

apply_filters( 'show_quiz_continue_buttom_on_fail' )

See snippet https://bitbucket.org/snippets/learndash/nMk9a


Description #


Source #

File: themes/legacy/templates/quiz/partials/show_quiz_result_box.php


Examples #

 <?php
/**
 * Example usage for show_quiz_continue_buttom_on_fail filter.
 */
add_filter( 'show_quiz_continue_buttom_on_fail', 'show_quiz_continue_buttom_on_fail_proc', 10, 2 );
function show_quiz_continue_buttom_on_fail_proc( $show_button = false, $quiz_id = 0 ) {

	// Example to show the continue button only on quiz 232
	if ( $quiz_id == 232 ) {
		$show_button = true;
	}

	return $show_button;
}
 

Changelog #

Changelog
Version Description
2.3.0.2 Introduced.