Assign custom post type capabilities to roles

I have my own custom post type called “announcements”. I have added the code below to get capabilities for my custom post type. What I cannot figure out is what the exact capabilities I should add to the roles going to manage the announcement are. After extensive searching and reading on the web I see every topic that covers this subjects assigns different capabilities to the desired roles. In addition, othes include plurals and others not. Obviously I could just add everything to my code and I suppose it would work, however this would result in a messy, full of junk code.

$args = array(

‘capability_type’ => array(‘announcement’,’announcements’),
‘map_meta_cap’ => true,

Read more here:: Assign custom post type capabilities to roles

Leave a Reply

Your email address will not be published. Required fields are marked *