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' ) ).


Top ↑

Parameters Parameters

$url

(string) The quiz redirect URL on completion.

$attempt

(LLMS_Quiz_Attempt) The quiz attempt.


Top ↑

Source Source

File: includes/class.llms.ajax.handler.php

View on GitHub



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.