do_action( "llms_user_{$post_type}_enrollment_{$action_type}", int $user_id , int $product_id )
Fires after a user’s enrollment is created or updated.
Description Description
$post_type
refers to the type of item the user is enrolled in, either ‘course’ or ‘membership’ $action_type
refers to the type of action taking place, either "created" or "updated".
Parameters Parameters
- $user_id
-
(int) WP User ID.
- $product_id
-
(int) WP Post ID of the course or membership.