BP_User_Query::setup_hooks()
Allow extending classes to set up action/filter hooks.
Description
When extending BP_User_Query, you may need to use some of its internal hooks to modify the output. It’s not convenient to call add_action() or add_filter() in your class constructor, because BP_User_Query::__construct() contains a fair amount of logic that you may not want to override in your class. Define this method in your own class if you need a place where your extending class can add its hooks early in the query-building process. See BP_Group_Member_Query::setup_hooks() for an example.
Source
File: bp-core/classes/class-bp-user-query.php
public function setup_hooks() {}
Changelog
Version | Description |
---|---|
BuddyPress 1.8.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.