LLMS_Membership::remove_auto_enroll_course( int $course_id )

Remove a course from auto enrollment


Parameters Parameters

$course_id

(int) (Required) WP_Post ID of the course.


Top ↑

Return Return

(bool)


Top ↑

Source Source

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

	public function remove_auto_enroll_course( $course_id ) {
		return $this->set( 'auto_enroll', array_diff( $this->get_auto_enroll_courses(), array( $course_id ) ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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