Browse: Home / Hooks /

learndash_model_product_user_unenrolled

apply_filters( 'learndash_model_product_user_unenrolled',  bool $unenrolled,  Learndash_Product_Model $product,  WP_User $user )

Filters whether a user was unenrolled from a product.


Description #


Parameters #

$unenrolled

(bool) True if a user was unenrolled, false otherwise.

$product

(Learndash_Product_Model) Product model.

$user

(WP_User) User.


Return #

(bool) True if a user was unenrolled, false otherwise.


Source #

File: includes/models/class-learndash-product-model.php


Changelog #

Changelog
Version Description
4.5.0 Introduced.