do_action( "learndash-{$context}-course-steps-after", string|false $post_type, int $course_id, int $user_id )
Fires after the course steps for any context.
Description #
The dynamic portion of the hook name, $context, refers to the context for which the hook is fired, such as course, lesson, topic, quiz, etc.
Parameters #
- $post_type
-
(string|false) Post type slug.
- $course_id
-
(int) Course ID.
- $user_id
-
(int) User ID.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash-{$context}-course-steps-after action.
*/
add_action(
'learndash-lesson-course-steps-after',
function( $post_type, $course_id, $user_id ) {
// May add any custom logic using $post_type, $course_id, $user_id
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |