Browse: Home / Snippets /

Hook into quiz ‘Start’ button logic

Contents


Snippet #

add_action( 'wp_footer', function() {
	?>
	<script>
	jQuery(document).ready(function() {
		// Start by getting the Quiz 'Start' button.
		jQuery('.wpProQuiz_content input.wpProQuiz_button[name="startQuiz"]').click(function(e) {
			//console.log('quiz start button clicked.');
			// Add logic here to hide your custom element. 
		});
	});
	</script>
	<?php
}, 999 );