Everyone is allowed to exist in WordPress

Hey there! I'm currently working on a CLI tool to deploy WordPress apps to DigitalOcean. Check it out! It's free and open source.

In fact, if you look at capabilities.php you’ll see that WordPress adds the “exist” capability after applying the filters to the original list of capabilities for the user, so it’s difficult to even hi-jack. Some might think the capability is useless but I think otherwise.

Many plugins nowadays, give you filterable capabilities for certain actions, like Regenerate Thumbnails. If I’d like everyone to be able to regenerate thumbnails on my blog, I’d filter that capability to exist. The “read” capability is very similar, but users are not allowed to “read” on private blogs, while they’re still allowed to “exist” :)

About the author

Konstantin Kovshenin

WordPress Core Contributor, ex-Automattician, public speaker and consultant, enjoying life in Moscow. I blog about tech, WordPress and DevOps.