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.
Return Return
(bool)
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 ) ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |