learndash_use_legacy_course_access_list

apply_filters( 'learndash_use_legacy_course_access_list',  boolean $use_legacy_course_access_list )

Filters whether to use legacy course access list or not.


Description #


Parameters #

$use_legacy_course_access_list

(boolean) Whether to use legacy course access list.


Source #

File: includes/course/ld-course-functions.php


Examples #

 <?php
/**
 * Example usage for learndash_use_legacy_course_access_list filter.
 */
add_filter(
	'learndash_use_legacy_course_access_list',
	function( $use_legacy_course_access_list ) {
		// May add any custom logic using $use_legacy_course_access_list.

		// Always return $use_legacy_course_access_list.
		return $use_legacy_course_access_list;
	}
);