LLMS_Lesson::get_available_date( string $format = '' )
Get the date a course became or will become available according to element drip settings
Description Description
If there are no drip settings, the published date of the element will be returned.
Parameters Parameters
- $format
-
(Optional) Date format (passed to date_i18n()). Default is empty string. When not specified the WP Core date + time formats will be used.
Default value: ''
Return Return
(string)
Source Source
File: includes/models/model.llms.lesson.php
Changelog Changelog
Version | Description |
---|---|
3.36.2 | Add available number of days to the course start date only if there's a course start date. |
3.16.0 | Introduced. |