WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#43680 new enhancement

Add new filter to WP_User_Query

Reported by: spacedmonkey Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version: 3.1
Component: Users Keywords: has-patch needs-testing
Focuses: Cc:

Description

Add a new filter to filter the value of results returned from the WP_User_Query. This brings the WP_User_Query class inline with other query classes, like WP_Query, which already has posts_results filter. This filter is a powerful one, that will allow for third party code, to hook in and change the results of the query.

Attachments (2)

43680.diff (752 bytes) - added by spacedmonkey 3 months ago.
43680.2.diff (750 bytes) - added by spacedmonkey 3 months ago.

Download all attachments as: .zip

Change History (6)

@spacedmonkey
3 months ago

#2 @SergeyBiryukov
3 months ago

  • Milestone changed from Awaiting Review to 5.0

#3 @danieltj
3 months ago

  • Focuses performance removed
  • Keywords needs-testing added
  • Type changed from defect (bug) to enhancement

Removing the performance focus and converting from bug to enhancement as nothing is technically broken here.

#4 @spacedmonkey
3 months ago

Updated the patch with coding standard fixes. cc @SergeyBiryukov

Note: See TracTickets for help on using tickets.