Skip to content

Instantly share code, notes, and snippets.

@jkudish
Created February 24, 2012 19:43
Show Gist options
  • Save jkudish/1903233 to your computer and use it in GitHub Desktop.
Save jkudish/1903233 to your computer and use it in GitHub Desktop.
<?php
$role = get_role( 'administrator' );
$role->add_cap( 'edit_tribe_event' );
$role->add_cap( 'read_tribe_event' );
$role->add_cap( 'delete_tribe_event' );
$role->add_cap( 'edit_tribe_events' );
$role->add_cap( 'edit_others_tribe_events' );
$role->add_cap( 'publish_tribe_events' );
$role->add_cap( 'read_private_tribe_events' );
$role->add_cap( 'edit_tribe_venue' );
$role->add_cap( 'read_tribe_venue' );
$role->add_cap( 'delete_tribe_venue' );
$role->add_cap( 'edit_tribe_venues' );
$role->add_cap( 'edit_others_tribe_venues' );
$role->add_cap( 'publish_tribe_venues' );
$role->add_cap( 'read_private_tribe_venues' );
$role->add_cap( 'edit_tribe_organizer' );
$role->add_cap( 'read_tribe_organizer' );
$role->add_cap( 'delete_tribe_organizer' );
$role->add_cap( 'edit_tribe_organizers' );
$role->add_cap( 'edit_others_tribe_organizers' );
$role->add_cap( 'publish_tribe_organizers' );
$role->add_cap( 'read_private_tribe_organizers' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment