LLMS_Student::enroll( int $product_id, string $trigger = 'unspecified' )

Enroll the student into a course or membership


Description Description

See also See also


Top ↑

Parameters Parameters

$product_id

(Required) WP Post ID of the course or membership

$trigger

(Optional) String describing the reason for enrollment

Default value: 'unspecified'


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.1 Moved filter llms_user_enrollment_allowed_post_types to function llms_get_enrollable_post_types().
3.37.9 Added filter llms_user_enrollment_allowed_post_types to customize the post types a user can be enrolled into.
3.34.0 Added new actions to differentiate between first-time enrollment and enrollment status updates.
3.17.0 Unknown.
2.2.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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