Skip to content

Instantly share code, notes, and snippets.

@rileypaulsen
Last active December 19, 2015 13:09
Show Gist options
  • Save rileypaulsen/5960595 to your computer and use it in GitHub Desktop.
Save rileypaulsen/5960595 to your computer and use it in GitHub Desktop.
add/remove capabilities to user roles
$edit_editor = get_role('editor');
$edit_editor->add_cap('add_users');
$edit_editor->add_cap('create_users');
$edit_editor->add_cap('delete_users');
$edit_editor->add_cap('edit_users');
$edit_editor->add_cap('list_users');
$edit_editor->add_cap('edit_theme_options');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment