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

Conversation

@danielbachhuber
Copy link
Member

json_base specifies the base slug used for the post type. Like core's
existing behavior, it will use name as the default.

json_controller_class probably needs a better name. It specifies which
controller class to use, because more complex post types will break
outside the standard WP_JSON_Posts_Controller class.

See #759, #718

`json_base` specifies the base slug used for the post type. Like core's
existing behavior, it will use `name` as the default.

`json_controller_class` probably needs a better name. It specifies which
controller class to use, because more complex post types will break
outside the standard `WP_JSON_Posts_Controller` class.
@danielbachhuber danielbachhuber modified the milestone: 2.0 Jan 8, 2015
@danielbachhuber
Copy link
Member Author

@WP-API/amigos What do you think of this registration pattern?

@danielbachhuber
Copy link
Member Author

We should also automatically register revision and other endpoints based whether the post type supports those endpoints.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielbachhuber can the be hooked into wp_loaded instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be, why?

I added them just to get things working, with the assumption they'd eventually be committed to create_initial_post_types()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. Makes sense.

@danielbachhuber
Copy link
Member Author

Continued in #820

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants