LLMS_Section::remove_all_child_lessons()

Remove ALL child lessons


Description Description


Return Return

([type]) [description]


Top ↑

Source Source

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

	public function remove_all_child_lessons() {

		//find all child lessons
		$lessons = $this->get_children_lessons();

		//if any lessons are found remove metadata that associates them with the section and course
		//remove the order as well
		if ( $lessons ) {
			foreach ( $lessons as $lesson ) {

				$this->remove_child_lesson( $lesson->ID );

			}
		}

	}


Top ↑

User Contributed Notes User Contributed Notes

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