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.

Top ↑

Parameters Parameters


(array) (Required) Array of request data.

Top ↑

Return Return


Top ↑

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' ),


Top ↑

Changelog Changelog

Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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