Browse: Home / Snippets /

Hook into quiz ‘Start’ button logic


Snippet #

Important: All snippets are provided as-is without support or guarantees. These snippets are provided as guidelines for advanced users looking to customize LearnDash. For any additional help or support with these snippets, we recommend reaching out to a LearnDash Expert.

add_action( 'wp_footer', function() {
	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. 
}, 999 );