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'


Top ↑

Return Return

(mixed)


Top ↑

Source Source

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

93
94
95
96
97
98
99
100
101
102
103
public function get_courses( $args = array(), $return = 'llms_posts' ) {
 
    $args = wp_parse_args(
        $args,
        array(
            'post_type' => 'course',
        )
    );
    return $this->get_posts( $args, $return );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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