do_action( 'sensei_course_status_updated', $status, $user_id, $course_id, $comment_id, $previous_status )
Fires when a course status is updated.
Parameters:
Name | Type | Description |
---|---|---|
$status |
string | The status. |
$user_id |
int | The user ID. |
$course_id |
int | The course ID. |
$comment_id |
int | The comment ID. |
$previous_status |
string | null | The previous status. Null if previous status was not set. |
- Since:
- 4.20.1 $previous_status parameter added.
- Source: