LLMS_Shortcode_Favorites::get_favorites()
Retrieve an array of Favorites from lifterlms_user_postmeta.
Return Return
(WP_Query)
Source Source
File: includes/shortcodes/class.llms.shortcode.favorites.php
protected function get_favorites() {
$student = llms_get_student();
$order_by = $this->get_attribute( 'orderby' );
$order = $this->get_attribute( 'order' );
$limit = $this->get_attribute( 'limit' );
return $student->get_favorites( $order_by, $order, $limit );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.5.0 | Introduced. |