LLMS_Course::has_date_passed( string $date_key )
Compare a course meta info date to the current date and get a bool
Description Description
Parameters Parameters
- $date_key
-
(Required) Property key, eg "start_date" or "enrollment_end_date".
Return Return
(boolean) Returns true
when the date is in the past and false
when the date is in the future.
Source Source
File: includes/models/model.llms.course.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |