Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Course_Data::get_all_ids()

Retrieve an array of all post ids in the course


Description Description

Includes course id, all section ids, all lesson ids, and all quiz ids.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.course.data.php

	private function get_all_ids() {
		return array_merge(
			array( $this->post_id ),
			$this->post->get_sections( 'ids' ),
			$this->post->get_lessons( 'ids' ),
			$this->post->get_quizzes()
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.31.0 Use $this->post_id instead of deprecated $this->course_id.
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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