LLMS_Instructor::get_courses( array $args = array(), string $return = 'llms_posts' )
Retrieve instructor’s courses
Parameters Parameters
- $args
-
(array) (Optional) query argument, see $this->get_posts()
Default value: array()
- $return
-
(string) (Optional) return format, see $this->get_posts()
Default value: 'llms_posts'
Return Return
(mixed)
Source Source
File: includes/models/model.llms.instructor.php
public function get_courses( $args = array(), $return = 'llms_posts' ) { $args = wp_parse_args( $args, array( 'post_type' => 'course', ) ); return $this->get_posts( $args, $return ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | Introduced. |