Dozent LMS developer documentation

  • Go To DozentLMS.com
Skip to content
Filter by type:
Search
Browse: Home / Functions / dozent_get_course_id_by_content_id()

dozent_get_course_id_by_content_id( $content_ID )


Source

File: includes/core-functions.php

	function dozent_get_course_id_by_content_id( $content_ID = 0 ) {
		$content_ID = dozent_get_post_id( $content_ID );

		return get_post_meta( $content_ID, '_dozent_course_id', true );
	}

Expand full source code Collapse full source code


Related

Uses

Uses
Uses Description
includes/core-functions.php: dozent_get_post_id()

Get the post id either from given ID or from the WordPress loop

© 2023, Dozent LMS