Today I delivered a followup talk to The Power of WordPress’ Roles and Capabilities that delves into the
map_meta_cap filter. This presentation is intended for developers who need greater control over permissions than roles alone provide.
Here’s the abstract:
In the second installment of this talk, I’ll discuss the true power behind WordPress’ roles and capabilities system,
map_meta_cap. Starting with an overview of how it relates to the system as a whole, including the functions discussed in the first installment, this talk will then use real-world examples to demonstrate how the map_meta_cap function and filter can be properly used to fully leverage WordPress’ capabilities system. For anyone who’s ever needed to conditionally grant or deny a user or group of users a certain ability, or wondered what the map_meta_cap flag in register_post_type() does, this talk will provide the answers.
Slides are available here.