dozent_course_is_public( null $course = null )

Determine if a course is publicly accessible


Description

Example usage:

$is_public_course = dozent_course_is_public( $course );

See also


Parameters

$course

(null) (Optional)

Default value: null


Return

(mixed|void)


Source

File: includes/conditional-functions.php

	function dozent_course_is_public( $course = null ) {

		$is_public = dozent_get_course_price_type( $course ) === 'public';

		/**
		 * Filter the return value of dozent_course_is_public(); function
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @param  bool  $is_public  Determine if the course is public
		 * @param  int|object  $course  Post object
		 */

		return apply_filters( 'dozent_course_is_public', $is_public, $course );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.