Hello, I am trying to hide the categories meta filed in the backend for a certain custom post-type.
Reason is, all the posts in this post-type are related to posts in another post-type, and inherited the categories from them. So the post-type where it needs to be hidden in the backend, still needs the functionality, the users just shouldn’t see the meta-box in the backend.
It was necessary to do it like this for some technical reasons i can’t get into here.
It seems a bit hacky to hide it with JS or CSS. The meta field doesn’t even have a proper class to target. No problem with JS, but still not my prefered way. Hiding the taxonomy in the gutenberg presets, will hide it for all the post types and users could change it back.
What is the right way to do this? I am at a loss.
Thank you!
[ad_2]