1/* Create Staff Member User Role */
2add_role(
3 'staff_member', // System name of the role.
4 __( 'Staff Member' ), // Display name of the role.
5 array(
6 'read' => true,
7 'delete_posts' => true,
8 'delete_published_posts' => true,
9 'edit_posts' => true,
10 'publish_posts' => true,
11 'upload_files' => true,
12 'edit_pages' => true,
13 'edit_published_pages' => true,
14 'publish_pages' => true,
15 'delete_published_pages' => false, // This user will NOT be able to delete published pages.
16 )
17);