AssignmentsReportsGenerator::unregisterQueryHooks()
Remove additional sql statement to fetch data
Description
Source
File: bp-integrations/learndash/buddypress/generators/AssignmentsReportsGenerator.php
protected function unregisterQueryHooks()
{
remove_filter('posts_fields', [$this, 'addAdditionalFields']);
remove_filter('posts_join_paged', [$this, 'addAdditionalJoins']);
remove_filter('posts_orderby', [$this, 'addAdditionalOrderBy']);
}
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.