Browse: Home / Functions /


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 #


(string|array) (Optional) String of comma separated user IDs or array.

Default value: ''


(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 #

Version Description
2.5.9 Introduced.