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


Top ↑

Return Return

(array) An array of courses accessible to user.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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