hi,
i was looking for a similar issue, but i found nothing. if there was already i apologize in advance.
Describe the bug
after creating a custom post type, i am not able to see the custom fields.
To reproduce
function register_custom_post_types() {
register_post_type('test', [
'labels' => [
'name' => __('test'),
],
'public' => true,
'supports' => [
'title',
'editor',
],
'show_in_rest' => true,
]);
}
add_action('init', 'register_custom_post_types');
Expected behavior
the custom fields appear a the bottom of the editing page of the custom post type.
Screenshots

Desktop:
Additional context
wordpress 5.2.2
You need to add custom-fields to the supports array, see docs https://developer.wordpress.org/reference/functions/register_post_type
We should only show this option, if the post type supports this feature.
sorry for reporting a non bug. i did not notice about that in the documentation.
thank you for the answer.
is it anyway considered as bug because the custom fields checkbox should not appear at all, or i can close this issue?
Yes, it's a bug. The option should be not visible when the post type doesn't support this feature. I opened a PR #16338 with a solution. When it's merged we close this issue..
Most helpful comment
Yes, it's a bug. The option should be not visible when the post type doesn't support this feature. I opened a PR #16338 with a solution. When it's merged we close this issue..