Changes between Initial Version and Version 1 of Ticket #31168, comment 10
- Timestamp:
- 01/29/2015 05:19:32 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31168, comment 10
initial v1 1 Would a better approach here be to use `post_type_supports()`? Remove `comments` from the `supports` array when page is registered. 1 Would a better approach here be to use `post_type_supports()`? Remove `comments` from the `supports` array when the page type is registered. 2 3 Sites could re-enable comments with `add_post_type_support( 'page', 'comments' );` 4 5 Using `post_type_supports` checks is how the REST API will determine what fields to include in endpoint responses.