LLMS_AJAX_Handler::llms_save_membership_autoenroll_courses( array $request )
Save autoenroll courses list for a Membership
Parameters Parameters
- $request
-
(array) (Required) $_POST data.
Return Return
(null|true)
Source Source
File: includes/class.llms.ajax.handler.php
} // Not a membership. $membership = llms_get_post( $request['post_id'] ); if ( ! $membership || ! is_a( $membership, 'LLMS_Membership' ) ) { return; } $courses = array_map( 'absint', (array) $request['courses'] ); $membership->add_auto_enroll_courses( $courses, true ); return true; } /** * AJAX handler for creating and updating access plans via the metabox on courses & memberships * * @since 3.29.0
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.30.0 | Introduced. |