[wp-trac] [WordPress Trac] #40600: get_item filter for hijacking single post request
WordPress Trac
noreply at wordpress.org
Sun May 7 05:46:38 UTC 2017
#40600: get_item filter for hijacking single post request
-------------------------------------------------+-------------------------
Reporter: ruud@… | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting
Component: REST API | Review
Severity: normal | Version: 4.7
Keywords: has-patch has-unit-tests dev- | Resolution:
feedback | Focuses:
-------------------------------------------------+-------------------------
Comment (by joehoyle):
It seems this would be best serviced by just creating a subclass of
`WP_REST_Posts_Controller` and using that subclass for the CTP via
`register_post_type`. Any reason that route not be possible?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40600#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list