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.


Top ↑

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.


Top ↑

Source Source

File: includes/models/model.llms.student.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
3.37.9 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.