#2584
James Wee
Participant

Yes, it’s a typo on my part. Role Editor Plugin automatically adds an “s” to the back of all capabilities. (LOL)

1. To rephrase, the custom post type capabilities are
– create_Newss, edit_Newss and all other prefixes (delete, publish, read)
– create_Eventss, edit_Eventss and all other prefixes (delete, publish, read)

2. Nope, Admin Menu Access is not activated.

I have sort of created my outcome by doing the following code below (setting “parent_slug” to null).
This hides the “Add News” and “Add Events” buttons while giving the user the capability to create_Newss and create_Eventss. I don’t understand why, but if I don’t add the 2 buttons below, the user does not have permission to do create_Newss and create_Eventss.


    array(
      'parent_slug'   => 'null', //Don't display on menu
      'page_title'    => 'Add News',
      'menu_title'    => 'Add News',
      'capability'    => 'create_Newss',
      'menu_slug'     => 'post-new.php?post_type=news',
      'function'      => null,// Uses the same callback function as parent menu. 
    ),
    array(
      'parent_slug'   => 'null', //Don't display on menu
      'page_title'    => 'Add Events',
      'menu_title'    => 'Add Events',
      'capability'    => 'create_Eventss',
      'menu_slug'     => 'post-new.php?post_type=events',
      'function'      => null,// Uses the same callback function as parent menu. 
    ),