LLMS_Student::get_completion_date( int $object_id, string $format = 'F d, Y' )
Get the formatted date when a course or lesson was completed by the student
Parameters Parameters
- $object_id
-
(int) (Required) WP Post ID of a course or lesson
- $format
-
(string) (Optional) date format as accepted by php date()
Default value: 'F d, Y'
Return Return
(false|string) will return false if the user is not enrolled
Source Source
File: includes/models/model.llms.student.php
$more = false; // If we hit our limit we have too many results, pop the last one. if ( count( $ids ) === $args['limit'] ) { array_pop( $ids ); $more = true; } // Reset args to pass back for pagination. $args['limit']--; $r = array( 'limit' => $args['limit'], 'more' => $more,
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
?? | Introduced. |