I found a solution:
Set 'public' => false
in register_post_type().
(After this I also need to set 'show_ui' => true
to retain it in the admin interface.)
I found a solution:
Set 'public' => false
in register_post_type().
(After this I also need to set 'show_ui' => true
to retain it in the admin interface.)