ld_get_mycourses( int|null $user_id = null, array $atts = array() )
Gets the array of courses that can be accessed by the user.
Description Description
Parameters Parameters
- $user_id
-
(Optional) User ID. Default null
Default value: null
- $atts
-
(Optional) An array of attributes.
- 'order'
(string) Optional. Designates ascending ('ASC') or descending ('DESC') order. Default 'DESC. - 'orderby'
(string) Optional. The name of the field to order posts by. Default ''ID. - 's'
(string) Optional. The search string.
Default value: array()
- 'order'
Return Return
(array) An array of courses accessible to user.
Source Source
File: includes/course/ld-course-user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |