BP_User_Query::setup_hooks()

Allow extending classes to set up action/filter hooks.


Description 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 Source

File: bp-core/classes/class-bp-user-query.php

	public function setup_hooks() {}

Top ↑

Changelog Changelog

Changelog
Version Description
1.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.