Can anyone give me a function or an idea of the method I would need to use to hide categories from the selection box in wp-admin?
I have a custom post type and I would like my authors to be able to choose ONLY between 5 of those categories while they are editing their posts. I would like this to only be the case with the custom post type and NOT for regular posts.
Something like this should do it. Replace
wpse_77670_getPermittedCategories()
with however you select the array of permitted categories, and'your_custom_category'
with whatever your custom taxonomy is for your custom post type.Edit, to work with regular ‘category’ taxonomy on custom post type: