<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php
class CopulooInitiateUserRoleClass
{
  // Register the Copuloo user role
  function register_user_role()
  {
    //wp_roles()->remove_role( 'copuloo' );
    wp_roles()->add_role( "copuloo", "Copuloo", array(
      'read' => true,
      'create_sites' => false,
      'delete_sites' => false,
      'manage_network' => false,
      'manage_sites' => false,
      'manage_network_users' => false,
      'manage_network_plugins' => false,
      'manage_network_themes' => false,
      'manage_network_options' => false,
      'upgrade_network' => false,
      'setup_network' => false,
      'activate_plugins' => false,
      'delete_others_pages' => false,
      'delete_others_posts' => false,
      'delete_pages' => false,
      'delete_posts' => false,
      'delete_private_pages' => false,
      'delete_private_posts' => false,
      'delete_published_pages' => false,
      'delete_published_posts' => false,
      'edit_dashboard' => false,
      'edit_others_pages' => false,
      'edit_others_posts' => false,
      'edit_pages' => false,
      'edit_posts' => true,
      'edit_private_pages' => false,
      'edit_private_posts' => false,
      'edit_published_pages' => false,
      'edit_published_posts' => false,
      'edit_theme_options' => false,
      'export' => false,
      'import' => false,
      'list_users' => false,
      'manage_categories' => false,
      'manage_links' => false,
      'manage_options' => false,
      'moderate_comments' => false,
      'promote_users' => false,
      'publish_pages' => false,
      'publish_posts' => false,
      'read_private_pages' => false,
      'read_private_posts' => false,
      'remove_users' => false,
      'switch_themes' => false,
      'upload_files' => false,
      'customize' => false,
      'delete_site' => false,
      'update_core' => false,
      'update_plugins' => false,
      'update_themes' => false,
      'install_plugins' => false,
      'install_themes' => false,
      'delete_themes' => false,
      'delete_plugins' => false,
      'edit_plugins' => false,
      'edit_themes' => false,
      'edit_files' => false,
      'edit_users' => false,
      'add_users' => false,
      'create_users' => false,
      'delete_users' => false,
      'unfiltered_html' => false,
    ) );
  }
}
 ?>
