dozent_db_query_get_sections( $course_ID )

Get Section by Course ID


Parameters

$course_ID

(Required)


Return

(array|object|null)


Source

File: includes/core-functions.php

	function dozent_db_query_get_sections( $course_ID ) {
		global $wpdb;

		$sections = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} WHERE post_parent = {$course_ID} AND post_type = 'dozent_section' order by menu_order asc;" );

		return $sections;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.