[wp-trac] [WordPress Trac] #49647: Extend REST API search endpoint with "after" and "before" which the posts endpoint already supports

WordPress Trac noreply at wordpress.org
Sun Oct 25 03:39:01 UTC 2020


#49647: Extend REST API search endpoint with "after" and "before" which the posts
endpoint already supports
-------------------------+-------------------------
 Reporter:  archon810    |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  REST API     |     Version:  5.0
 Severity:  normal       |  Resolution:  maybelater
 Keywords:               |     Focuses:
-------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * status:  new => closed
 * version:  5.3.2 => 5.0
 * resolution:   => maybelater
 * milestone:  Awaiting Review =>


Comment:

 Hi @archon810,

 The purpose of the Search endpoint is to provide a unified, minimal
 interface for performing basic searches across a variety of different
 WordPress entities; it has been recently extended to support terms and
 post formats.

 Searching by date isn't something that can be universally implemented.

 I would instead recommend using the existing posts endpoint for performing
 those searches, or implementing a custom endpoint.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49647#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list