Support » Alpha/Beta/RC » Custom post types and add_cap()

  • Resolved rudolf

    (@rudolf)


    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 podcast custom 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 podcast post type doesn’t show up in the left-hand menu.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom post types and add_cap()’ is closed to new replies.