From what I can see on a first glance, you have a single-quote missing:
'name' => 'Events,
should be:
'name' => 'Events',
In addition, your declaration of the Custom Post Type is incomplete as far as I can see (and pretty ugly formatted).
Try something like this:
<?php
/* Register Custom Post Type 'events' */
function prefix_register_custom_post_type(){
// Custom Post Type Name
$cpt_name = 'events';
// CPT Features/possible values:
// 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 'thumbnail', 'custom-fields', and 'post-formats'
$cpt_features = array(
'title',
'revisions',
'thumbnail',
'editor'
);
// Slug
$cpt_slug = 'events'; // What the URL will look like
$labels = array(
'name' => __('Events', 'text-domain'),
'singular_name' => __('Event', 'text-domain'),
'menu_name' => __('Events', 'text-domain'),
'name_admin_bar' => __('Events', 'text-domain'),
'all_items' => __('All events', 'text-domain'), // Archive Page Name
'add_name' => __('Add new event', 'text-domain'),
'add_new_item' => __('Add new event', 'text-domain'),
'edit' => __('edit event', 'text-domain'),
'edit_item' => __('edit event', 'text-domain'),
'new_item' => __('New event', 'text-domain'),
'view' => __('View event', 'text-domain'),
'view_item' => __('View event', 'text-domain'),
'search_items' => __('Search ', 'text-domain'),
'parent' => __('Parent', 'text-domain'),
'not_found' => __('No events found', 'text-domain'),
'not_found_in_trash' => __('No events found in Trash', 'text-domain')
);
/* ------------------------------------------ End of Edit */
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'show_in_nav_menus' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_admin_bar' => true,
'menu_position' => 21,
'menu_icon' => 'dashicons-awards',
'can_export' => true,
'delete_with_user' => false,
'hierarchical' => true,
'has_archive' => true,
'query_var' => true,
'capability_type' => 'post',
'map_meta_cap' => true,
// 'capabilities' => array(),
'rewrite' => array(
'slug' => $cpt_slug,
'with_front'=> true,
'pages' => true,
'feeds' => false
),
'supports' => $cpt_features
);
register_post_type($cpt_name, $args);
}
add_action('init', 'prefix_register_custom_post_type');
Since this formatting is a bit easier to read, please check or replace your code with this and try again. This code usually allows "editors" to access and manipulate the registered custom post types. Also see the commented "capabilities" array where you can enter things like 'edit_posts'.