Skip to content

Instantly share code, notes, and snippets.

@jfortier-haptiq
Last active November 16, 2015 18:54
Show Gist options
  • Save jfortier-haptiq/d71701d45aae9c842063 to your computer and use it in GitHub Desktop.
Save jfortier-haptiq/d71701d45aae9c842063 to your computer and use it in GitHub Desktop.
<?php
/*
List of available WordPress permissions as of version 4.3.1
Copied, and cleaned from: https://codex.wordpress.org/Roles_and_Capabilities
*/
$allPermissions = array(
'manage_network',
'manage_sites',
'manage_network_users',
'manage_network_plugins',
'manage_network_themes',
'manage_network_options',
'activate_plugins',
'create_users',
'delete_plugins',
'delete_themes',
'delete_users',
'edit_files',
'edit_plugins',
'edit_theme_options',
'edit_themes',
'edit_users',
'export',
'import',
'install_plugins',
'install_themes',
'list_users',
'manage_options',
'promote_users',
'remove_users',
'switch_themes',
'update_core',
'update_plugins',
'update_themes',
'edit_dashboard',
'moderate_comments',
'manage_categories',
'manage_links',
'edit_others_posts',
'edit_pages',
'edit_others_pages',
'edit_published_pages',
'publish_pages',
'delete_pages',
'delete_others_pages',
'delete_published_pages',
'delete_others_posts',
'delete_private_posts',
'edit_private_posts',
'read_private_posts',
'delete_private_pages',
'edit_private_pages',
'read_private_pages',
'unfiltered_html',
'edit_published_posts',
'upload_files',
'publish_posts',
'delete_published_posts',
'edit_posts',
'delete_posts',
'read'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment