Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/2463-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Disable REST API endpoints for internal post types.
6 changes: 3 additions & 3 deletions includes/class-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function register_inbox_post_type() {
),
'map_meta_cap' => true,
'public' => false,
'show_in_rest' => true,
'show_in_rest' => false,
'rewrite' => false,
'query_var' => false,
'supports' => array( 'title', 'editor', 'author', 'custom-fields' ),
Expand Down Expand Up @@ -223,7 +223,7 @@ public static function register_outbox_post_type() {
),
'map_meta_cap' => true,
'public' => false,
'show_in_rest' => true,
'show_in_rest' => false,
'rewrite' => false,
'query_var' => false,
'supports' => array( 'title', 'editor', 'author', 'custom-fields' ),
Expand Down Expand Up @@ -350,7 +350,7 @@ public static function register_post_post_type() {
),
'map_meta_cap' => true,
'public' => false,
'show_in_rest' => true,
'show_in_rest' => false,
'rewrite' => false,
'query_var' => false,
'supports' => array( 'title', 'editor', 'author', 'custom-fields', 'excerpt', 'comments' ),
Expand Down