LLMS_Instructor::get_memberships( array $args = array(), string $return = 'llms_posts' )
Retrieve instructor’s memberships
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_memberships( $args = array(), $return = 'llms_posts' ) {
$args = wp_parse_args(
$args,
array(
'post_type' => 'llms_membership',
)
);
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. |