Activate Gutenberg on custom post types
If you want to enable Gutenberg in Custom Post Types (CTP), you can do so with the following line:
function custom_post_example() { register_post_type( 'example', array( ... 'show_in_rest' => true, ... ) ); }
Here is just an excerpt for the line that should be added to the $args array.