dozent_get_course_sections( int $course_ID )

Get Dozent Course Section


Parameters

$course_ID

(int) (Required)


Return

(WP_Query)


Source

File: includes/core-functions.php

	function dozent_get_course_sections( $course_ID = 0 ) {
		$course_id = dozent_get_post_id( $course_ID );

		$args = array(
			'post_type'      => 'dozent_section',
			'post_parent'    => $course_id,
			'orderby'        => 'menu_order',
			'order'          => 'ASC',
			'posts_per_page' => - 1,
		);

		$query = new \WP_Query( $args );

		return $query;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.