Opened 13 months ago
Closed 11 months ago
#20624 closed defect (bug) (wontfix)
WP_User_Query filters
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Users | Version: | 3.1 |
| Severity: | minor | Keywords: | close |
| Cc: | me@… |
Description
the filters 'users_join' and 'users_where' are missing in the WP_User_Query..
Hope you can add this to ne next version (3.4), because it's very important for me..
Change History (5)
- Keywords has-patch needs-testing added
think could fix the problem:
add after line 521 in /wp-includes/user.php
$this->query_where = apply_filters_ref_array('posts_where', array( $this->query_where, &$this ) );
$this->query_from = apply_filters_ref_array('posts_join', array( $this->query_from, &$this ) );
- Component changed from General to Users
- Keywords has-patch removed
- Version changed from 3.4 to 3.1
In your comment you are using the post query filter names. Also for 3.4 it's too late.
- Keywords close added; needs-testing removed
And you should be able to use the pre_user_query filter.
Note: See
TracTickets for help on using
tickets.

also you can maybe add an orderby filter