learndash_convert_course_access_list( string $course_access_list = '', boolean $return_array = false )
Converts and gets the course access list.
Description 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 Parameters
- $course_access_list
-
(Optional) String of comma separated user IDs.
Default value: ''
- $return_array
-
(Optional) Whether to return array. True to return array and false to return string.
Default value: false
Return Return
(array) The list of user IDs.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
2.5.9 | Introduced. |