is_lecture_free_preview( int $lecture_ID )


Parameters

$lecture_ID

(int) (Required)


Return

(bool) Determine if lecture is in preview mode


Source

File: includes/core-functions.php

	function is_lecture_free_preview($lecture_ID = 0)
	{
		$lecture_ID = dozent_get_post_id($lecture_ID);
		$is_preview = get_post_meta($lecture_ID, '_lecture_preview', true);

		return (bool)apply_filters('_lecture_preview', $is_preview, $lecture_ID);
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.