do_action( "llms_user_removed_from_{$post_type}", int $user_id , int $product_id , string $trigger , string $new_status )
Trigger an action immediately following user unenrollment
Description Description
The dynamic portion of this hook, {$post_type}
corresponds to the post type of the $product_id
. Note that any post type prefixed with llms_
is stripped. For example when triggered by a membership (llms_membership
) the hook will be llms_user_removed_from_membership
.
Parameters Parameters
- $user_id
-
(int) WP_User ID of the student
- $product_id
-
(int) WP_Post ID of the product.
- $trigger
-
(string) Enrollment trigger.
- $new_status
-
(string) New enrollment status of the student after the unenrollment has taken place.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.37.9 | Introduced. |