Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Usage of `/pages` in the `WP_JSON_Pages` class #28

Closed
thenbrent opened this Issue · 0 comments

1 participant

@thenbrent

In line with the excellent advice from the doc on Extending the API:

You should also consider how other plugins might extend your data, and design for this.

I think it would be a good move to replace hardcoded references to the /pages base route in WP_JSON_Pages with $this->base.

Doing so would allow plugins to extend the WP_JSON_Pages class for custom post types that are very similar to the page post type and would benefit from methods like getPostByPath() etc. methods.

@rmccue rmccue closed this in 0fbe7f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.