[wp-trac] [WordPress Trac] #50617: REST API: Add modified_before and modified_after to WP_REST_Request attributes

WordPress Trac noreply at wordpress.org
Wed Jul 8 22:08:10 UTC 2020


#50617: REST API: Add modified_before and modified_after to WP_REST_Request
attributes
---------------------------+-----------------------------
 Reporter:  claytoncollie  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  REST API       |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Right now there are two attributes in WP_REST_Request that allow requests
 to be made by the Post's published date; `before` and `after`.

 I am proposing that `modified_before` and `modified_after` be added to
 allow for querying posts by their modified date.

 Here is the list of the current attributes.

 https://developer.wordpress.org/rest-api/requests/#attributes

 before and after are on lines 64 and 44 of this gist.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list