LLMS_Course::has_date_passed( string $date_key )

Compare a course meta info date to the current date and get a bool


Parameters Parameters

$date_key

(string) (Required) Property key, eg "start_date" or "enrollment_end_date".


Top ↑

Return Return

(boolean) Returns true when the date is in the past and false when the date is in the future.


Top ↑

Source Source

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

		if ( ! $student ) {
			return 0;
		}
		return $student->get_progress( $this->get( 'id' ), 'course' );

	}

	/**
	 * Retrieve an instance of the LLMS_Product for this course
	 *
	 * @since 3.3.0
	 *
	 * @return LLMS_Product
	 */
	public function get_product() {
		return new LLMS_Product( $this->get( 'id' ) );
	}



Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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