title: WordPress: Capabilities for custom post types
body: <p>I'm writing a plugin which creates a custom post_type. I'd also like the plugin to create a custom role which can only add/edit/delete the new post_type. I've tried several plugins (Role Scoper, Advanced Access manager) and they allow me to redefine or create new roles, but they don't allow me to assign capabilities specific to the new post_type. For example, I want to allow the ability to add/edit my new post_type but NOT normal posts/pages.</p>
  
  <p>From what I've read, I can add new roles with the <a href="http://codex.wordpress.org/Function_Reference/add_role" rel="noreferrer">add_role()</a> function. One of the parameters of this function is an array of "capabilities" which appear to be defined <a href="http://codex.wordpress.org/Roles_and_Capabilities" rel="noreferrer">here</a>.  I think what I need is to be able to add my capabilities that are specific to MY post_type. Is this possible?</p>