{"id":11671775,"date":"2019-06-25T19:00:33","date_gmt":"2019-06-25T19:00:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/gutenberg-patch\/"},"modified":"2019-06-25T19:01:40","modified_gmt":"2019-06-25T19:01:40","slug":"gutenberg-patch","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/gutenberg-patch\/","title":{"rendered":"Gutenberg Patch"},"content":{"rendered":"<p>For anybody else who encountered a similar situation &#8212; with legacy CCTM integration, wanting to move forward to Gutenberg while retaining the functionality from CCTM&#8230;.<\/p>\n<p>Basically, custom posts are Gutenberg enabled by default, but only if they show up in the Rest API, which came after this last update of this plugin.<\/p>\n<p>I added this code to line ~380 of CCTM.php:<\/p>\n<p><code>def[&#039;show_in_rest&#039;] = true;<\/code><\/p>\n<p>I figure since it&#8217;s not getting updated again, don&#8217;t think patching the plugin that way is too big of a deal. It worked great once I did that.<\/p>\n","protected":false},"template":"","class_list":["post-11671775","topic","type-topic","status-publish","hentry","topic-tag-cctm","topic-tag-rest"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11671775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11671775\/revisions"}],"predecessor-version":[{"id":11671782,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11671775\/revisions\/11671782"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11671775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}