learndash_get_open_courses

learndash_get_open_courses( boolean $bypass_transient = false )

Gets all the courses with the price type open.


Description #

Logic for this query was taken from the sfwd_lms_has_access_fn() function


Parameters #

$bypass_transient

(boolean) (Optional) Whether to bypass transient cache.

Default value: false


Return #

(array) An array of course IDs.


Source #

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


Changelog #

Changelog
Version Description
2.3.0 Introduced.