do_action( 'learndash_quiz_submitted', array $quiz_data, WP_User $current_user )
Fires after the quiz is submitted
Description #
Parameters #
- $quiz_data
-
(array) An array of quiz data.
- $current_user
-
(WP_User) Current user object.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_quiz_submitted action.
*/
add_action(
'learndash_quiz_submitted',
function( $quiz_data, $current_user ) {
// May add any custom logic using $quiz_data, $current_user
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |