{"id":1689,"date":"2019-01-25T20:17:30","date_gmt":"2019-01-26T04:17:30","guid":{"rendered":"https:\/\/codedcommerce.com\/?p=1689"},"modified":"2023-10-13T20:55:39","modified_gmt":"2023-10-14T03:55:39","slug":"woo-meetup-presentation-on-code-snippets-devops","status":"publish","type":"post","link":"https:\/\/codedcommerce.com\/woo-meetup-presentation-on-code-snippets-devops\/","title":{"rendered":"WooCommerce Meetup presentation"},"content":{"rendered":"\n<p class=\"has-drop-cap wp-block-paragraph\">I&#8217;ll be presenting at our <a href=\"https:\/\/www.meetup.com\/WooCommerce-Los-Angeles-Meetup\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>WooCommerce Los Angeles<\/strong> Meetup<\/a>&nbsp;in a couple of weeks on February 7th, 2019 at <a href=\"https:\/\/www.wework.com\/buildings\/520-broadway--los-angeles--CA\" target=\"_blank\" rel=\"noopener noreferrer\">WeWork, 520 Broadway, Santa Monica<\/a>. Join us!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The topic:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WooCommerce <a href=\"https:\/\/docs.woocommerce.com\/document\/customizing-woocommerce-best-practices\/\" target=\"_blank\" rel=\"noopener noreferrer\">officially recommends the <strong>Code Snippets<\/strong> plugin<\/a> for managing small functions of PHP code.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These small pieces of code override WooCommerce default behavious, theme behaviors, or in some cases plugin behaviors using <a href=\"https:\/\/codex.wordpress.org\/Plugin_API\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress hooks<\/a> (actions and filters). You can also use it for CSS and JS code with the help of some PHP hooks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WooCommerce provides <a href=\"https:\/\/docs.woocommerce.com\/documentation\/plugins\/woocommerce\/woocommerce-codex\/snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\">sample code snippets<\/a> to reference, and I offer <a href=\"https:\/\/github.com\/Coded-Commerce-LLC\/WooCommerce-Code-Snippets\" target=\"_blank\" rel=\"noopener noreferrer\">several of my own<\/a> as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are many benefits of using Code Snippets in leiu of custom plugins, parent theme, or child theme. The biggest benefit that comes to mind is the ability to avoid creating a child theme \u2013 so you can use a box stock parent theme like <a href=\"https:\/\/woocommerce.com\/storefront\/\" target=\"_blank\" rel=\"noopener noreferrer\">Storefront<\/a> without having to extend it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">All you need to fully customize a WooCommerce site are Code Snippets, settings, CSS modifications inside the Customizer and well chosen plugins.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">My presentation will also discuss popular DevOps topics using Git to version control a <a href=\"https:\/\/underscores.me\/\" target=\"_blank\" rel=\"noopener noreferrer\">custom theme<\/a>, <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\">child theme<\/a>, plugins, all files, or potentially even the database contents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While it&#8217;s great to minimize our use of custom code files with Code Snippets, I acknowledge there are many cases where custom code does need to be maintained under version control.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One such example is how popular managed WordPress hosting services commonly place the entire site under version control to manage environment phasing, upstreams, and releases in their workflows.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/wp-content\/uploads\/Code-Snippets-DevOps.pdf\">Download the presentation (PDF)<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ll be presenting at our WooCommerce Los Angeles Meetup\u00a0in a couple of weeks on February 7th, 2019 at WeWork, 520 Broadway, Santa Monica. Join us!<\/p>\n","protected":false},"author":1,"featured_media":1694,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52047,635716946,635718625],"tags":[],"class_list":["post-1689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-events","category-woocommerce-guides"],"jetpack_featured_media_url":"https:\/\/codedcommerce.com\/wp-content\/uploads\/2019\/01\/code-snippets.png","_links":{"self":[{"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/posts\/1689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/comments?post=1689"}],"version-history":[{"count":0,"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/posts\/1689\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/media\/1694"}],"wp:attachment":[{"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/media?parent=1689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/categories?post=1689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codedcommerce.com\/wp-json\/wp\/v2\/tags?post=1689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}