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


Top ↑

Return Return

(array) The list of user IDs.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.9 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.