Skip to content

Instantly share code, notes, and snippets.

@X-Raym
Created February 23, 2021 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save X-Raym/5d306dd877d18440e4425d07d71073ee to your computer and use it in GitHub Desktop.
Save X-Raym/5d306dd877d18440e4425d07d71073ee to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: LearnDash Add Button On Quiz Fail
Description: Add Learndash continue button even if user fails the quiz. Based on https://developers.learndash.com/hook/show_quiz_continue_buttom_on_fail/
*/
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 ) {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment