Assign custom post type capabilities to roles

by Arg Geo   Last Updated August 14, 2019 15:08 PM

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, 

Related Questions

Capabilities and Custom Post Types

Updated December 15, 2017 16:08 PM

Custom post type shows all if no post from user

Updated April 30, 2016 08:03 AM