Browse: Home / Hooks /

show_quiz_continue_buttom_on_fail

apply_filters( 'show_quiz_continue_buttom_on_fail' )

See snippet https://developers.learndash.com/hook/show_quiz_continue_buttom_on_fail/


Description #


Source #

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


Examples #

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

 <?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.