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
Return Return
(void)
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 ); }
Expand full source code Collapse full source code View on GitHub