$public_roles = array( 'studio', 'producer' );
foreach ( $public_roles as $the_public_role ) {
$role = get_role( $the_public_role );
$role->add_cap( 'read_room' );
$role->add_cap( 'edit_room' );
$role->add_cap( 'edit_rooms' );
$role->add_cap( 'edit_published_rooms' );
$role->add_cap( 'publish_rooms' );
$role->add_cap( 'delete_published_rooms' );
}