Browse: Home / Classes / LDLMS_Factory_Post /

LDLMS_Factory_Post::course

LDLMS_Factory_Post::course( int|object $course = null,  bool $reload = false )

Get a Course.


Description #


Parameters #

$course

(int|object) (Optional) Either course_id integer or WP_Post instance.

Default value: null

$reload

(bool) (Optional) To force reload of instance.

Default value: false


Return #

(object|null) Instance of LDLMS_Model_Course or null


Source #

File: includes/classes/class-ldlms-factory-post.php