Create Calendar Events with Instructor Role Dashboard Documentation - Honors WP
Create Calendar Events with Instructor Role Dashboard

If you download the User Role Editor plugin, you can utilize the caps for group leaders in the “add_caps_to_group_leaders” method in “admin\class-immerseus-calendar-admin.php”.

// Group leader.

$group_leader = get_role( ‘group_leader’ );
$group_leader->add_cap( ‘create_posts’ );
$group_leader->add_cap( ‘publish_imm_calendar_events’ );
$group_leader->add_cap( ‘edit_imm_calendar_event’ );
$group_leader->add_cap( ‘edit_imm_calendar_events’ );
$group_leader->add_cap( ‘edit_published_imm_calendar_events’ );
$group_leader->add_cap( ‘delete_published_imm_calendar_events’ );
$group_leader->add_cap( ‘delete_imm_calendar_events’ );
$group_leader->add_cap( ‘delete_imm_calendar_event’ );
$group_leader->add_cap( ‘read_others_imm_calendar_events’, false );
$group_leader->add_cap( ‘edit_others_imm_calendar_events’, false );
$group_leader->add_cap( ‘delete_others_imm_calendar_events’, false );

Leave a Reply

Your email address will not be published.

  • Your cart is empty.
Shopping Cart
  • Your cart is empty.
Scroll to Top