do_action( 'learndash_quiz_completed', array $quizdata, WP_User $user )
Fires after the quiz is marked as complete.
Description #
Parameters #
- $quizdata
-
(array) An array of quiz data.
- $user
-
(WP_User) WP_User object.
Source #
File: includes/ld-users.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_quiz_completed action. */ add_action( 'learndash_quiz_completed', function( $quizdata, $user ) { // May add any custom logic using $quizdata, $user }, 10, 2 );