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'


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/models/model.llms.student.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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