{"id":89662,"date":"2013-07-10T20:31:20","date_gmt":"2013-07-11T03:31:20","guid":{"rendered":"https:\/\/2013.vancouver.wordcamp.org\/?post_type=wcb_session&#038;p=89662"},"modified":"2013-07-10T20:33:02","modified_gmt":"2013-07-11T03:33:02","slug":"wp_rewrite-isnt-as-scary-as-you-think","status":"publish","type":"wcb_session","link":"https:\/\/vancouver.wordcamp.org\/2013\/session\/wp_rewrite-isnt-as-scary-as-you-think\/","title":{"rendered":"WP_Rewrite Isn&#8217;t As Scary As You Think"},"content":{"rendered":"<p>Everyone wants pretty URLs on their sites, and WordPress provides a powerful system to support this. Behind the magic of the Permalinks settings page is WP_Rewrite, an API terrifying to many developers.<\/p>\n<p>Like most of WordPress, the Rewrites system isn&#8217;t limited just to internal use, and understanding how the API works lets developers build powerful tools atop the platform. We&#8217;ll start by discussing what happens when you set a permalink structure through the dashboard and how WordPress uses that to query for content. We&#8217;ll then explore how you can add custom rewrite rules, both with and without an understanding of regular expressions. By the end of this session, you&#8217;ll know what actions and filters are available to tweak rewrite rules, how endpoints enhance your code, and how you can leverage this powerful API to deliver a better user experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everyone wants pretty URLs on their sites, and WordPress provides a powerful system to support this. Behind the magic of the Permalinks settings page is WP_Rewrite, an API terrifying to many developers. Like most of WordPress, the Rewrites system isn&#8217;t limited just to internal use, and understanding how the API works lets developers build powerful [&hellip;]<\/p>\n","protected":false},"author":3703476,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1376780400,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[89660],"footnotes":""},"session_track":[149451],"session_category":[],"class_list":["post-89662","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-track-3"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3mtXn-nka","jetpack_likes_enabled":true,"session_date_time":{"date":"August 17, 2013","time":"4:00 pm"},"session_speakers":[{"id":"89660","slug":"erick-hitter","name":"Erick Hitter","link":"https:\/\/vancouver.wordcamp.org\/2013\/speaker\/erick-hitter\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/89662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/users\/3703476"}],"version-history":[{"count":2,"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/89662\/revisions"}],"predecessor-version":[{"id":89668,"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/89662\/revisions\/89668"}],"speakers":[{"embeddable":true,"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/speakers\/89660"}],"wp:attachment":[{"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/media?parent=89662"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_track?post=89662"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/vancouver.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_category?post=89662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}