The Power of WordPress’ Roles and Capabilities – Understanding map_meta_cap

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.