apply_filters( 'llms_quiz_complete_redirect', string $url , LLMS_Quiz_Attempt $attempt )
Filter the quiz redirect URL on completion
Description Description
Return an associative array containing at least the $id
to cease execution and have the custom item returned via the process_trash()
method.
A successful deletion return should be: array( 'id' => $id )
.
A failure should contain an error message in a second array member: array( 'id' => $id, 'error' => esc_html__( 'My error message', 'my-domain' ) )
.
Parameters Parameters
- $url
-
(string) The quiz redirect URL on completion.
- $attempt
-
(LLMS_Quiz_Attempt) The quiz attempt.