Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Make it easier to cross call controllers by creating WP_REST_Requests #1218

Description

@joehoyle

Currently cross calling get_item etc is laborious and you need to know the route etc. Typically, a Request object does't need all that information, as the callback just wants to the arguments. For example, rather than internally creating a WP_REST_Request for /taxonomy/post_tag/terms/123, it would be nicer to just do new WP_REST_Request( array( 'taxonomy' => 'post_tag', 'id' => 123 ) ) or something.

@rmccue thoughts on this?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions