{"id":6492,"date":"2019-03-24T14:36:29","date_gmt":"2019-03-24T18:36:29","guid":{"rendered":"https:\/\/2019.atlanta.wordcamp.org\/?post_type=wcb_session&#038;p=6492"},"modified":"2019-03-24T14:36:29","modified_gmt":"2019-03-24T18:36:29","slug":"how-to-approach-object-oriented-programming-with-wordpress","status":"publish","type":"wcb_session","link":"https:\/\/atlanta.wordcamp.org\/2019\/session\/how-to-approach-object-oriented-programming-with-wordpress\/","title":{"rendered":"How to Approach Object-Oriented Programming with WordPress"},"content":{"rendered":"\n<p>You&#8217;re a WordPress developer who wants to use object-oriented programming in their next project. You&#8217;re already familiar with concepts like inheritance. The issue is that you&#8217;re not sure how to apply those concepts to design classes that feel useful.<\/p>\n\n\n\n<p>This isn&#8217;t something to feel ashamed about! In fact, it&#8217;s a common problem when trying to use object-oriented programming with WordPress. It&#8217;s hard to know how to design classes that work well with WordPress.<\/p>\n\n\n\n<p>Well, you&#8217;re in luck! This is what we&#8217;ll go over during this talk. <\/p>\n\n\n\n<p>We&#8217;ll start by going over the prevalent class design in the WordPress ecosystem. We&#8217;ll analyze what it&#8217;s doing and why it leaves you feeling unsatisfied. <\/p>\n\n\n\n<p>Then we&#8217;ll look at how object-oriented programming expects you to design classes. We&#8217;ll finish by looking at strategies that you can use to design classes. This should let you finally design classes that feel meaningful to use!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;re a WordPress developer who wants to use object-oriented programming in their next project. You&#8217;re already familiar with concepts like inheritance. The issue is that you&#8217;re not sure how to apply those concepts to design classes that feel useful. This &hellip; <a href=\"https:\/\/atlanta.wordcamp.org\/2019\/session\/how-to-approach-object-oriented-programming-with-wordpress\/\">Continue reading <span class=\"assistive-text\">How to Approach Object-Oriented Programming with WordPress<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7673567,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1556989200,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[6162],"footnotes":""},"session_track":[1214580],"session_category":[],"class_list":["post-6492","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-mark-pope"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paiD6H-1GI","session_date_time":{"date":"May 4, 2019","time":"1:00 pm"},"session_speakers":[{"id":"6162","slug":"carl-alexander","name":"Carl Alexander","link":"https:\/\/atlanta.wordcamp.org\/2019\/speaker\/carl-alexander\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/6492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/6492\/revisions"}],"predecessor-version":[{"id":6493,"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/sessions\/6492\/revisions\/6493"}],"speakers":[{"embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/speakers\/6162"}],"author":[{"embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wporg\/v1\/users\/carlalexander"}],"wp:attachment":[{"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/media?parent=6492"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/session_track?post=6492"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2019\/wp-json\/wp\/v2\/session_category?post=6492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}