I’m trying to create a custom post type that only certain user roles can access. For example, if I specify
'capability_type' => 'podcast'when I register the
podcastcustom post type, should I then be able to do this?
$role =& get_role('administrator'); $role->add_cap('edit_podcasts');
It doesn’t seem to be working for me; the new
podcastpost type doesn’t show up in the left-hand menu.
- The topic ‘Custom post types and add_cap()’ is closed to new replies.