WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#38710 closed enhancement (fixed)

Make all collection params filterable

Reported by: joehoyle Owned by: joehoyle
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: REST API Keywords:
Focuses: Cc:

Description

From https://core.trac.wordpress.org/ticket/38629, we should add filters for all the collection params in all controllers. This makes it a lot easier for developers to add they own collection params.

Attachments (1)

38710.diff (3.0 KB) - added by jnylen0 4 years ago.
Add collection parameters filters for comments, terms, users

Download all attachments as: .zip

Change History (3)

@jnylen0
4 years ago

Add collection parameters filters for comments, terms, users

#1 @joehoyle
4 years ago

  • Milestone changed from Awaiting Review to 4.7
  • Owner set to joehoyle
  • Status changed from new to assigned

#2 @joehoyle
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 39223:

REST API: Make all collection params filterable.

For developers wanting to add their own registered collection parameters, they can now use the rest_$type_collection_params filter. This brings consistency with the already existing rest_$post_type_collection_params.

Fixes #38710.
Props jnylen0.

Note: See TracTickets for help on using tickets.