apply_filters( 'llms_get_enrollment_status', false|string $status, int $user_id, int $product_id, boolean $use_cache )

Filter a user’s enrollment status for a specific post.


Description Description

Note that if a value is modified by this filter the modified value is not cached. Therefore you should consider implementing caching of your modified value which matches the caching implemented by this method so that the modified value obeys the default caching behavior.


Top ↑

Parameters Parameters

$status

(false|string) When no enrollment status exists, returns false. Otherwise returns the enrollment status as a string.

$user_id

(int) WP_User ID of the student

$product_id

(int) WP_Post ID of the post used to check the enrollment status.

$use_cache

(boolean) Whether or not to use the local cache.


Top ↑

Source Source

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

View on GitHub



Top ↑

User Contributed Notes User Contributed Notes

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