LLMS_Student::get_enrollment_trigger_id( int $product_id )
Get the enrollment trigger id for a the student’s enrollment in a course
Parameters Parameters
- $product_id
-
(int) (Required) WP Post ID of the course or membership
Return Return
(int|false)
Source Source
File: includes/models/model.llms.student.php
* @param int $user_id WP_User ID of the student
* @param int $product_id WP_Post ID of the post used to check the enrollment status.
* @param boolean $use_cache Whether or not to use the local cache.
*/
return apply_filters( 'llms_get_enrollment_status', $status, $this->get_id(), $product_id, $use_cache );
}
/**
* Get the enrollment trigger for a the student's enrollment in a course
*
* @param int $product_id WP Post ID of the course or membership
* @return string|false
* @since ??
* @version 3.21.0
*/
public function get_enrollment_trigger( $product_id ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |