LLMS_Course_Factory::get_course( mixed $the_course = false,  $args = array() )

Get Course


Description Description


Parameters Parameters

$the_course

(mixed) (Optional) = false, $args = array()

Default value: false


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.course.factory.php

	public function get_course( $the_course = false, $args = array() ) {
		global $post;

		if ( empty( $the_course->post_type ) ) {
			$the_course = $post;
		}

	 	$classname = 'LLMS_Course_Basic';

		return new LLMS_Course_Basic( $the_course, $args );
	}


Top ↑

User Contributed Notes User Contributed Notes

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