dozent_get_attached_product_id_by_course( int|object $course )

Get attached product id by course


Description

Example usage:

$product_id = dozent_get_attached_product_id_by_course( $course );

See also


Parameters

$course

(int|object) (Required) course Object


Return

(mixed)


Source

File: includes/integration-functions.php

	function dozent_get_attached_product_id_by_course( $course ) {
		$course    = dozent_get_course( $course );
		$course_id = $course->get_id();

		return (int) get_post_meta( $course_id, '_attached_product_id', true );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.