{"id":604,"date":"2016-04-25T09:47:46","date_gmt":"2016-04-25T13:47:46","guid":{"rendered":"https:\/\/2016.asheville.wordcamp.org\/?post_type=wcb_session&#038;p=604"},"modified":"2016-08-18T15:21:26","modified_gmt":"2016-08-18T19:21:26","slug":"using-hooks-and-creating-your-own","status":"publish","type":"wcb_session","link":"https:\/\/asheville.wordcamp.org\/2016\/session\/using-hooks-and-creating-your-own\/","title":{"rendered":"Using Hooks (and Creating Your Own)"},"content":{"rendered":"<p>Hooks give end users a chance to write custom code that safely alters the behavior of WordPress core, plugins and themes &#8211; all without modifying the core, plugin or theme code itself.<\/p>\n<p>In this talk, we&#8217;ll go over basic usage of WordPress hooks, and we&#8217;ll explore ways to find the right hook when you have a need for custom functionality. We&#8217;ll also talk about how easy it is to create your own hooks, and how important it is to do so when creating plugins and themes.<\/p>\n<p>Take aways:<\/p>\n<ul>\n<li>Learn how WordPress is listening for you to run your own code at certain key points.<\/li>\n<li>Safely alter or add to the behavior of WordPress core, themes, and plugins.<\/li>\n<li>Give others a chance to expand upon your own code as they see fit.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hooks give end users a chance to write custom code that safely alters the behavior of WordPress core, plugins and themes &#8211; all without modifying the core, plugin or theme code itself. In this talk, we&#8217;ll go over basic usage of WordPress hooks, and we&#8217;ll explore ways to find the right hook when you have &hellip; <a href=\"https:\/\/asheville.wordcamp.org\/2016\/session\/using-hooks-and-creating-your-own\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using Hooks (and Creating Your Own)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":14259074,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1465131600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"https:\/\/prezi.com\/1lcogr_rktmj\/using-hooks-and-creating-your-own","_wcpt_session_video":"https:\/\/wordpress.tv\/2016\/08\/16\/michael-hull-using-hooks-and-creating-your-own\/","_wcpt_speaker_id":[494],"footnotes":""},"session_track":[5041],"session_category":[],"class_list":["post-604","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-developer"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7abZV-9K","session_date_time":{"date":"June 5, 2016","time":"9:00 am"},"session_speakers":[{"id":"494","slug":"michael-hull","name":"Michael Hull","link":"https:\/\/asheville.wordcamp.org\/2016\/speaker\/michael-hull\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/604","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"}],"author":[{"embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/users\/14259074"}],"version-history":[{"count":7,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/604\/revisions"}],"predecessor-version":[{"id":1576,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/604\/revisions\/1576"}],"speakers":[{"embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/speakers\/494"}],"wp:attachment":[{"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=604"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=604"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/asheville.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}