[wp-trac] [WordPress Trac] #38463: WP_REST_Request allow getting a specific param value.
WordPress Trac
noreply at wordpress.org
Mon Oct 31 00:13:33 UTC 2016
#38463: WP_REST_Request allow getting a specific param value.
-------------------------------+------------------------------
Reporter: TimothyBlynJacobs | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by rachelbaker):
* keywords: => reporter-feedback
Comment:
@TimothyBlynJacobs You should be able to do this already by setting the
url parameter as an array key on the `WP_REST_Request` object. Example:
`$request['param']` or `$request['id']`
Does that meet your needs?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38463#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list