learndash_convert_course_access_list( string|array $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|array) (Optional) String of comma separated user IDs or array.
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 #
Changelog #
Version | Description |
---|---|
2.5.9 | Introduced. |