LLMS_Course::get_categories( array $args = array() )
Retrieve course categories
Parameters Parameters
- $args
-
(array) (Optional) Array of args passed to wp_get_post_terms.
Default value: array()
Return Return
(array)
Source Source
File: includes/models/model.llms.course.php
public function get_categories( $args = array() ) {
return wp_get_post_terms( $this->get( 'id' ), 'course_cat', $args );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |