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.


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


Top ↑

Source Source

File: includes/

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

Top ↑

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.