ReportsGenerator::fetch()
Fetch the data from the database
Description
Source
File: bp-integrations/learndash/library/ReportsGenerator.php
public function fetch() { add_filter( 'learndash_get_activity_query_args', array( $this, 'remove_post_ids_param' ), 10, 1 ); $this->activityQuery = learndash_reports_get_activity($this->params); remove_filter( 'learndash_get_activity_query_args', array( $this, 'remove_post_ids_param' ), 10 ); // print_r($this->activityQuery);die(); $this->results = $this->activityQuery['results']; $this->pager = $this->activityQuery['pager']; }
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.