Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Student::insert_enrollment_postmeta( int $product_id, string $trigger = 'unspecified' )
Add student postmeta data for enrollment into a course or membership
Parameters Parameters
- $product_id
-
(int) (Required) WP Post ID of the course or membership
- $trigger
-
(string) (Optional) String describing the reason for enrollment
Default value: 'unspecified'
Return Return
(boolean)
Source Source
File: includes/models/model.llms.student.php
'meta_value' => $value, 'updated_date' => current_time( 'mysql' ), ), array( 'user_id' => $this->get_id(), 'post_id' => $object_id, 'meta_key' => $key, ), array( '%d', '%d', '%s', '%s', '%s' ) ); // db call ok; no-cache ok. if ( false === $update ) { return false;
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.2.3 | Introduced. |