learndash_30_show_step_completed_alert( int $step_id, int $course_id, int $user_id, string $context )
Shows the step completed alert after the step (Lesson or Topic) is completed.
Description #
Quizzes don’t have a completion alert, as they have their own completion mechanism (extra page)
Parameters #
- $step_id
-
(int) (Required) Step ID.
- $course_id
-
(int) (Required) Course ID.
- $user_id
-
(int) (Required) User ID.
- $context
-
(string) (Required) Context where the alert is shown (lesson or topic).
Return #
(void)
Source #
Changelog #
Version | Description |
---|---|
4.21.5. | Don't show the alert if automatic progression is enabled. |
4.21.3 | Introduced. |