ld_get_mycourses( int|null $user_id = null, array $atts = array() )
Gets the array of courses that can be accessed by the user.
Description #
Parameters #
- $user_id
-
(int|null) (Optional) User ID.
Default value: null
- $atts
-
(array) (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 #
(array) An array of courses accessible to user.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |