WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#49647 new enhancement

Extend REST API search endpoint with "after" and "before" which the posts endpoint already supports

Reported by: archon810 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3.2
Component: REST API Keywords:
Focuses: Cc:

Description

Hi,

I'd like to use the search API but provide the after parameter. I was surprised to see there's no parity to posts and it's not supported.

https://developer.wordpress.org/rest-api/reference/posts/

https://developer.wordpress.org/rest-api/reference/search-results/

Is there a reason most, if not all, params supported by posts aren't present in search? Can they be?

Thanks.

Change History (1)

#1 @SergeyBiryukov
2 months ago

  • Component changed from General to REST API
Note: See TracTickets for help on using tickets.