learndash_convert_course_access_list

learndash_convert_course_access_list( string $course_access_list = '',  boolean $return_array = false )

Converts and gets the course access list.


Description #

The function converts the standard comma-separated list of user IDs used for the course_access_list field. The conversion is to trim and ensure the values are integer and not empty.


Parameters #

$course_access_list

(string) (Optional) String of comma separated user IDs.

Default value: ''

$return_array

(boolean) (Optional) Whether to return array. True to return array and false to return string.

Default value: false


Return #

(string|array) The list of user IDs.


Source #

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


Changelog #

Changelog
Version Description
2.5.9 Introduced.