LLMS_AJAX_Handler::bulk_enroll_membership_into_course( array $request )
Queue all members of a membership to be enrolled into a specific course
Description Description
Triggered from the auto-enrollment tab of a membership.
Parameters Parameters
- $request
-
(array) (Required) Array of request data.
Return Return
(array)
Source Source
File: includes/class.llms.ajax.handler.php
public static function bulk_enroll_membership_into_course( $request ) { if ( empty( $request['post_id'] ) || empty( $request['course_id'] ) ) { return new WP_Error( 400, __( 'Missing required parameters', 'lifterlms' ) ); } do_action( 'llms_membership_do_bulk_course_enrollment', $request['post_id'], $request['course_id'] ); return array( 'message' => __( 'Members are being enrolled in the background. You may leave this page.', 'lifterlms' ), ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.0 | |
3.15.0 | Introduced. |