delete posts and pages WordPress user capabilities set

Delete posts and pages capabilities

Delete posts and pages capabilities

It is worth a lot of efforts to build good content for your blog. But some time we delete some posts or pages. Who can delete this stuff? What capabilities user should have to be powerful enough in order reduce you site content?

If you read WordPress Codex “Roles and Capabilities” page or use plugin like User Role Editor to manage WordPress roles and user capabilities, you saw there this capabilities set:
delete_others_pages, delete_others_posts, delete_pages, delete_posts, delete_private_pages, delete_private_posts, delete_published_pages, delete_published_posts.

Did you turn on or off capabilities from the list above accurately building or editing user roles? If Yes, then you will get a big surprise now.

Going through WordPress core source code I discovered that these capabilities are just place-holders in WordPress till current 3.3.1 version. The only place where you can find them is wp-admin/includes/schema.php file. They just added to WordPress capabilities list, but not used yet. Yes, they are not used. So you can ignore them in your current roles building work. These capabilities as useless for this moment as deprecated levels capabilities set.

The key capabilities, which defines user permission to make something with posts or pages are edit capabilities. I will devote them separate special post.

Tags: capability, WordPress