Capabilities.php
3 weeks ago
HookNames.php
3 weeks ago
HookTypes.php
3 weeks ago
MenuTypes.php
3 weeks ago
Capabilities.php
81 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Catalog of standard WordPress capability slug constants. |
| 5 | * Uses HasConstants for runtime enumeration of all defined caps. |
| 6 | * Reference for authorization checks and capability registration hooks. |
| 7 | * |
| 8 | * @package Framework |
| 9 | * @subpackage Wordpress\Constants |
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | namespace Kirki\Framework\Wordpress\Constants; |
| 13 | |
| 14 | \defined('ABSPATH') || exit; |
| 15 | use Kirki\Framework\Concerns\HasConstants; |
| 16 | class Capabilities |
| 17 | { |
| 18 | use HasConstants; |
| 19 | public const SWITCH_THEMES = 'switch_themes'; |
| 20 | public const EDIT_THEMES = 'edit_themes'; |
| 21 | public const ACTIVATE_PLUGINS = 'activate_plugins'; |
| 22 | public const EDIT_PLUGINS = 'edit_plugins'; |
| 23 | public const EDIT_USERS = 'edit_users'; |
| 24 | public const EDIT_FILES = 'edit_files'; |
| 25 | public const MANAGE_OPTIONS = 'manage_options'; |
| 26 | public const MODERATE_COMMENTS = 'moderate_comments'; |
| 27 | public const MANAGE_CATEGORIES = 'manage_categories'; |
| 28 | public const MANAGE_LINKS = 'manage_links'; |
| 29 | public const UPLOAD_FILES = 'upload_files'; |
| 30 | public const IMPORT = 'import'; |
| 31 | public const UNFILTERED_HTML = 'unfiltered_html'; |
| 32 | public const EDIT_POSTS = 'edit_posts'; |
| 33 | public const EDIT_OTHERS_POSTS = 'edit_others_posts'; |
| 34 | public const EDIT_PUBLISHED_POSTS = 'edit_published_posts'; |
| 35 | public const PUBLISH_POSTS = 'publish_posts'; |
| 36 | public const EDIT_PAGES = 'edit_pages'; |
| 37 | public const READ = 'read'; |
| 38 | public const LEVEL_10 = 'level_10'; |
| 39 | public const LEVEL_9 = 'level_9'; |
| 40 | public const LEVEL_8 = 'level_8'; |
| 41 | public const LEVEL_7 = 'level_7'; |
| 42 | public const LEVEL_6 = 'level_6'; |
| 43 | public const LEVEL_5 = 'level_5'; |
| 44 | public const LEVEL_4 = 'level_4'; |
| 45 | public const LEVEL_3 = 'level_3'; |
| 46 | public const LEVEL_2 = 'level_2'; |
| 47 | public const LEVEL_1 = 'level_1'; |
| 48 | public const LEVEL_0 = 'level_0'; |
| 49 | public const EDIT_OTHERS_PAGES = 'edit_others_pages'; |
| 50 | public const EDIT_PUBLISHED_PAGES = 'edit_published_pages'; |
| 51 | public const PUBLISH_PAGES = 'publish_pages'; |
| 52 | public const DELETE_PAGES = 'delete_pages'; |
| 53 | public const DELETE_OTHERS_PAGES = 'delete_others_pages'; |
| 54 | public const DELETE_PUBLISHED_PAGES = 'delete_published_pages'; |
| 55 | public const DELETE_POSTS = 'delete_posts'; |
| 56 | public const DELETE_OTHERS_POSTS = 'delete_others_posts'; |
| 57 | public const DELETE_PUBLISHED_POSTS = 'delete_published_posts'; |
| 58 | public const DELETE_PRIVATE_POSTS = 'delete_private_posts'; |
| 59 | public const EDIT_PRIVATE_POSTS = 'edit_private_posts'; |
| 60 | public const READ_PRIVATE_POSTS = 'read_private_posts'; |
| 61 | public const DELETE_PRIVATE_PAGES = 'delete_private_pages'; |
| 62 | public const EDIT_PRIVATE_PAGES = 'edit_private_pages'; |
| 63 | public const READ_PRIVATE_PAGES = 'read_private_pages'; |
| 64 | public const DELETE_USERS = 'delete_users'; |
| 65 | public const CREATE_USERS = 'create_users'; |
| 66 | public const UNFILTERED_UPLOAD = 'unfiltered_upload'; |
| 67 | public const EDIT_DASHBOARD = 'edit_dashboard'; |
| 68 | public const UPDATE_PLUGINS = 'update_plugins'; |
| 69 | public const DELETE_PLUGINS = 'delete_plugins'; |
| 70 | public const INSTALL_PLUGINS = 'install_plugins'; |
| 71 | public const UPDATE_THEMES = 'update_themes'; |
| 72 | public const INSTALL_THEMES = 'install_themes'; |
| 73 | public const UPDATE_CORE = 'update_core'; |
| 74 | public const LIST_USERS = 'list_users'; |
| 75 | public const REMOVE_USERS = 'remove_users'; |
| 76 | public const PROMOTE_USERS = 'promote_users'; |
| 77 | public const EDIT_THEME_OPTIONS = 'edit_theme_options'; |
| 78 | public const DELETE_THEMES = 'delete_themes'; |
| 79 | public const EXPORT = 'export'; |
| 80 | } |
| 81 |