LLMS_Student::get_achievements( string $orderby = 'updated_date', string $order = 'DESC', string $return = 'obj' )
Retrieve achievements that a user has earned
Description Description
Parameters Parameters
- $orderby
-
(Optional) field to order the returned results by
Default value: 'updated_date'
- $order
-
(Optional) ordering method for returned results (ASC or DESC)
Default value: 'DESC'
- $return
-
(Optional) return type obj => array of objects from $wpdb->get_results achievements => array of LLMS_User_Achievement instances
Default value: 'obj'
Return Return
(array)
Source Source
File: includes/models/model.llms.student.php
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |