EssaysReportsGenerator::fetch()
Custom fetcher to load the essays from database and setup the pagination
Description
Source
File: bp-integrations/learndash/buddypress/generators/EssaysReportsGenerator.php
public function fetch() { $essayQuery = $this->getGroupEssays($this->args); $this->results = $essayQuery->posts; $this->pager = [ 'total_items' => $essayQuery->found_posts, 'per_page' => $essayQuery->query_vars['posts_per_page'], 'total_pages' => $essayQuery->max_num_pages ]; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.