At WordCamp Netherlands 2013, Andrew Nacin gave a talk called “You Don’t Know Query“. It changed the way I write WordPress code. One of the best WordPress-talks I’ve seen.
Turns out Andrew did an equally excellent talk that year about working with roles and capabilities. I recently came across a code snippet in a client project that used the “map_meta_caps” hook, and this helped me grasp what it was trying to do.
Some hooks in WordPress are incredibly powerful. In my client’s case, I soon realized that power was being used to shoot us in the foot. But with a decent understanding of how things work, you can use “map_meta_caps” to create great things. I’ll let Nacin explain…