[wp-trac] [WordPress Trac] #25285: Filter query arguments passed to a new WP_User_Query()
WordPress Trac
noreply at wordpress.org
Wed Sep 11 21:56:44 UTC 2013
#25285: Filter query arguments passed to a new WP_User_Query()
--------------------------+-----------------------------
Reporter: jeremyfelt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
The queries created by `WP_Users_List_Table` and `WP_MS_Users_List_Table`
don't allow for modification before the final SQL statements are
generated. By adding a filter to the query arguments accepted in the
`__construct()` method of `WP_User_Query()`, we have more control over
what results are returned.
Attached patch has the included filter. It may be helpful to discuss where
else this filter (or action) would belong if `__construct()` is not the
right place for it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25285>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list