dozent_course_access_methods()

Course access methods, this function returns all available methods


Return

(mixed|void)


Source

File: includes/course-functions.php

	function dozent_course_access_methods() {

		$access_methods = [
			'public'    => [
				'label'                => __( 'Public', 'dozent' ),
				'description'          => __( 'The course is publicly accessible. Anyone can access its content without the need to be logged-in or enrolled.',
					'dozent' ),
			],
			'protected' => [
				'label'                => __( 'Protected', 'dozent' ),
				'description'          => __( 'The course is free. Anyone can access its content by log-in into the site.', 'dozent' ),
			],
			'free'      => [
				'label'                => __( 'Free', 'dozent' ),
				'description'          => __( 'The course is free but users need to get logged-in and enrolled in order to access the content.', 'dozent' ),
			],
			'closed'    => [
				'label'                => __( 'Closed', 'dozent' ),
				'description'          => __( 'The course should be enrolled by integration ( WooCommerce, EDD, Paid Memberships Pro ) and or any others.',
					'dozent' ),
				//'inner_callback' => [ \Dozent\MetaBox::class, 'course_price_type_closed' ],
			],
		];

		return apply_filters( 'dozent_course_access_methods', $access_methods );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.