{"id":792,"date":"2012-10-15T19:39:20","date_gmt":"2012-10-15T23:39:20","guid":{"rendered":"https:\/\/2012-dev.toronto.wordcamp.org\/?post_type=wcb_session&#038;p=792"},"modified":"2012-11-21T05:27:24","modified_gmt":"2012-11-21T10:27:24","slug":"the-power-of-wordpress-roles-and-capabilities-understanding-map_meta_cap","status":"publish","type":"wcb_session","link":"https:\/\/toronto.wordcamp.org\/2012-dev\/session\/the-power-of-wordpress-roles-and-capabilities-understanding-map_meta_cap\/","title":{"rendered":"The Power of WordPress&#8217; Roles and Capabilities &#8211; Understanding map_meta_cap"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft\" src=\"http:\/\/1.gravatar.com\/avatar\/38e526b811ef688a32d86f85871353eb?s=100&amp;r=pg&amp;d=mm\" alt=\"\" \/>In the second installment of this talk, I&#8217;ll discuss the true power behind WordPress&#8217; 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&#8217; capabilities system. For anyone who&#8217;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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the second installment of this talk, I&#8217;ll discuss the true power behind WordPress&#8217; 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 &hellip; <a href=\"https:\/\/toronto.wordcamp.org\/2012-dev\/session\/the-power-of-wordpress-roles-and-capabilities-understanding-map_meta_cap\/\">Continue reading <span class=\"screen-reader-text\">The Power of WordPress&#8217; Roles and Capabilities &#8211; Understanding map_meta_cap<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6358608,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":0,"_wcpt_session_duration":3000,"_wcpt_session_type":"","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[727],"footnotes":""},"session_track":[10024],"session_category":[],"class_list":["post-792","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-advanced"],"jetpack_shortlink":"https:\/\/wp.me\/p2lwpt-cM","jetpack_sharing_enabled":true,"session_date_time":{"date":"","time":""},"session_speakers":[{"id":"727","slug":"erick-hitter","name":"Erick Hitter","link":"https:\/\/toronto.wordcamp.org\/2012-dev\/speaker\/erick-hitter\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/sessions\/792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/users\/6358608"}],"version-history":[{"count":3,"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/sessions\/792\/revisions"}],"predecessor-version":[{"id":1391,"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/sessions\/792\/revisions\/1391"}],"speakers":[{"embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/speakers\/727"}],"wp:attachment":[{"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/media?parent=792"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/session_track?post=792"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2012-dev\/wp-json\/wp\/v2\/session_category?post=792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}