{"id":2218,"date":"2016-06-03T14:23:46","date_gmt":"2016-06-03T18:23:46","guid":{"rendered":"https:\/\/2016.asheville.wordcamp.org\/?post_type=wcb_session&#038;p=2218"},"modified":"2016-06-04T11:13:00","modified_gmt":"2016-06-04T15:13:00","slug":"wordpress-rewrites-api","status":"publish","type":"wcb_session","link":"https:\/\/asheville.wordcamp.org\/2016\/session\/wordpress-rewrites-api\/","title":{"rendered":"WordPress Rewrites API"},"content":{"rendered":"<p><strong>PLEASE NOTE: while this talk is in the Design\/Front-End room, it is geared more towards\u00a0Developers.\u00a0A big thanks for Jonathan for stepping up as we had a speaker\u00a0cancellation last-minute.<\/strong><\/p>\n<p>Rewrite rules are how WordPress creates clean\/pretty URIs from URL query parameters. When your new page or blog post automatically gets a human-friendly URL, this is provided by a rewrite rule, which itself is using WordPress\u2019s Rewrite API. In this presentation Jonathan Daggerhart will go over the basics of the Rewrite API, create a few new rewrite rules as examples, and make use of the data the Rewrite API provides the global WP_Query object when it matches a rule\u2019s pattern. Hopefully by the end of the class, you\u2019ll have a good understanding of what the Rewrite API is, how it works, and some use-cases where it could be beneficial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PLEASE NOTE: while this talk is in the Design\/Front-End room, it is geared more towards\u00a0Developers.\u00a0A big thanks for Jonathan for stepping up as we had a speaker\u00a0cancellation last-minute. Rewrite rules are how WordPress creates clean\/pretty URIs from URL query parameters. When your new page or blog post automatically gets a human-friendly URL, this is provided &hellip; <a href=\"https:\/\/asheville.wordcamp.org\/2016\/session\/wordpress-rewrites-api\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress Rewrites API<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6466358,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1465070400,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[2193],"footnotes":""},"session_track":[793826],"session_category":[],"class_list":["post-2218","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-designfront-end"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7abZV-zM","session_date_time":{"date":"June 4, 2016","time":"4:00 pm"},"session_speakers":[{"id":"2193","slug":"jonathan-daggerhart","name":"Jonathan Daggerhart","link":"https:\/\/asheville.wordcamp.org\/2016\/speaker\/jonathan-daggerhart\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/2218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":5,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/2218\/revisions"}],"predecessor-version":[{"id":2256,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/2218\/revisions\/2256"}],"speakers":[{"embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/speakers\/2193"}],"author":[{"embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wporg\/v1\/users\/daggerhart"}],"wp:attachment":[{"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=2218"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=2218"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=2218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}