dozent_course_is_closed( null $course = null )

Determine if a course is closed


Description

The course should be enrolled by integration ( WooCommerce, EDD, Paid Memberships Pro ) and or any others. The price will be return by the integrated system.

Example usage:

$is_closed_course = dozent_course_is_closed( $course );

See also


Parameters

$course

(null) (Optional)

Default value: null


Return

(mixed|void)


Source

File: includes/conditional-functions.php

	function dozent_course_is_closed( $course = null ) {

		$is_closed = dozent_get_course_price_type( $course ) === 'closed';

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

		return apply_filters( 'dozent_course_is_closed', $is_closed, $course );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.