/** * LearnDash - Examples of trigger for JavaScript quiz question answer responses. * When a user answers a quiz question and that question has correct and incorrect * response text this will be displayed from an AJAX call then the html element update. * This is an example of hooking into the trigger provided when the html element is updated. * * There is one custom event (learndash-quiz-answer-response-contentchanged) to subscriber to * and that can be attached to both the correct and incorrect reponses. * */ add_action( 'wp_print_footer_scripts', function() { if ( is_singular( 'sfwd-quiz' ) ) { ?>