dozent_get_enrolments_by_order( int $order_id )

Return all enrolments data by order ID (if attached order)


Parameters

$order_id

(int) (Required) Order ID


Return

(array|object|null)


Source

File: includes/integration-functions.php

	function dozent_get_enrolments_by_order( $order_id ) {
		global $wpdb;

		$enrolments = $wpdb->get_results( "SELECT * from {$wpdb->dozent_enrols} WHERE order_id = '{$order_id}' " );

		return $enrolments;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.