Adam Silverstein
4589c03036
Users: Add a users_pre_query filter to short circuit WP_User_Query results.
...
Add a new filter `users_pre_query` - filters the users array before the query takes place. Return a non-null value to bypass WordPress's default user queries. Similar to the `posts_pre_query` filter for WP_Query added in #36687 . This filter lets you short circuit the WP_User_Query MySQL query to return your own results.
Developers should note that filtering functions that require pagination information are encouraged to set the `total_users` property of the WP_User_Query object, passed to the filter by reference. If WP_User_Query does not perform a database query, it will not have enough information to generate these values itself.
Props tlovett1, birgire, boonebgorges, spacedmonkey.
Fixes #44169 .
git-svn-id: https://develop.svn.wordpress.org/trunk@44373 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-29 16:05:50 +00:00
..
2017-11-30 23:09:33 +00:00
2018-12-14 03:16:56 +00:00
2018-12-16 04:54:40 +00:00
2017-11-30 23:09:33 +00:00
2018-12-17 17:59:44 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-09-02 22:08:05 +00:00
2018-12-12 03:02:00 +00:00
2018-12-14 02:48:14 +00:00
2018-08-30 12:12:55 +00:00
2017-11-30 23:09:33 +00:00
2018-12-16 22:23:34 +00:00
2018-08-17 01:50:26 +00:00
2017-10-03 16:51:25 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2018-12-18 23:09:51 +00:00
2018-08-17 01:50:26 +00:00
2016-07-08 14:36:37 +00:00
2018-08-17 01:50:26 +00:00
2018-12-14 05:15:54 +00:00
2018-08-17 01:50:26 +00:00
2018-09-24 15:22:01 +00:00
2018-12-14 03:24:35 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-12-12 03:02:00 +00:00
2018-09-13 17:25:31 +00:00
2018-08-17 01:50:26 +00:00
2018-12-17 17:59:44 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-12-12 03:02:00 +00:00
2018-12-14 01:49:46 +00:00
2018-04-25 15:54:29 +00:00
2018-12-29 16:05:50 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2017-12-09 23:08:24 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-07-17 08:59:30 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-12-17 18:38:13 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2018-12-18 16:34:17 +00:00
2018-12-14 03:27:55 +00:00
2018-06-16 12:44:46 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-12-14 06:01:24 +00:00
2018-08-17 01:50:26 +00:00
2018-12-14 01:40:50 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-08-17 01:50:26 +00:00
2018-12-14 02:48:14 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2018-08-17 01:50:26 +00:00
2016-01-05 20:56:10 +00:00