LLMS_Course::has_sales_page_redirect()
Determine if sales page redirection is enabled
Contents
Return Return
(boolean)
Source Source
File: includes/models/model.llms.course.php
* @since 3.0.0 * @since 3.7.0 Unknown. * * @return boolean */ public function is_enrollment_open() { // If no period is set, enrollment is automatically open. if ( 'yes' !== $this->get( 'enrollment_period' ) ) { $is_open = true; } else { $is_open = ( $this->has_date_passed( 'enrollment_start_date' ) && ! $this->has_date_passed( 'enrollment_end_date' ) );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Use strict in_array() comparison. |
3.23.0 | Unknown. |
3.20.0 | Introduced. |