{"id":1458,"date":"2020-03-02T23:43:55","date_gmt":"2020-03-03T04:43:55","guid":{"rendered":"https:\/\/2020.dc.wordcamp.org\/?post_type=wcb_session&#038;p=1458"},"modified":"2020-03-02T23:43:55","modified_gmt":"2020-03-03T04:43:55","slug":"lets-build-our-first-plugin","status":"publish","type":"wcb_session","link":"https:\/\/dc.wordcamp.org\/2020\/session\/lets-build-our-first-plugin\/","title":{"rendered":"Let&#8217;s Build Our First Plugin!"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you&#8217;ve ever wanted to build your own plugin for WordPress, this is the session for you. We&#8217;re going to start from scratch and work our way up. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, we&#8217;ll take a look at the basic requirements of a plugin. Next we&#8217;ll take our example plugin idea and break it into the various components and steps that we&#8217;ll need. We&#8217;ll code up the plugin together and install it on our sites, debugging any problems that arise. Finally, we&#8217;ll look at ways that we could further extend our plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This tutorial assumes some HTML and CSS knowledge, but you don&#8217;t already need to be familiar with writing PHP or JavaScript.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The steps that we&#8217;ll work through include: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Setting up a folder and PHP file for our plugin<\/li><li>The plugin file header and what it does<\/li><li>Creating a README file<\/li><li>Adding a menu item and sub-menu item in the dashboard for our plugin settings<\/li><li>Creating a plugin settings page, settings sections, and individual settings with the Settings API<\/li><li>Using WordPress hooks to enqueue scripts and styles, and display output for the user<\/li><li>Moving our plugin settings into the WordPress Customizer<\/li><li>Preparing our plugin for translation and future updates<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve ever wanted to build your own plugin for WordPress, this is the session for you. We&#8217;re going to start from scratch and work our way up. First, we&#8217;ll take a look at the basic requirements of a plugin. Next we&#8217;ll take our example plugin idea and break it into the various components and &hellip; <a href=\"https:\/\/dc.wordcamp.org\/2020\/session\/lets-build-our-first-plugin\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Let&#8217;s Build Our First Plugin!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":16175955,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1585495800,"_wcpt_session_duration":3600,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[1167],"footnotes":""},"session_track":[24],"session_category":[],"class_list":["post-1458","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-track-1"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"March 29, 2020","time":"11:30 am"},"session_speakers":[{"id":"1167","slug":"david-wolfpaw","name":"David Wolfpaw","link":"https:\/\/dc.wordcamp.org\/2020\/speaker\/david-wolfpaw\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions\/1458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions\/1458\/revisions"}],"predecessor-version":[{"id":1459,"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions\/1458\/revisions\/1459"}],"speakers":[{"embeddable":true,"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/speakers\/1167"}],"author":[{"embeddable":true,"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wporg\/v1\/users\/wolfpaw"}],"wp:attachment":[{"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/media?parent=1458"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/session_track?post=1458"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/dc.wordcamp.org\/2020\/wp-json\/wp\/v2\/session_category?post=1458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}