WooCommerce Meetup presentation

Code Snippets plugin banner

I’ll be presenting at our WooCommerce Los Angeles Meetup in a couple of weeks on February 7th, 2019 at WeWork, 520 Broadway, Santa Monica. Join us!

The topic:

WooCommerce officially recommends the Code Snippets plugin for managing small functions of PHP code.

These small pieces of code override WooCommerce default behavious, theme behaviors, or in some cases plugin behaviors using WordPress hooks (actions and filters). You can also use it for CSS and JS code with the help of some PHP hooks.

WooCommerce provides sample code snippets to reference, and I offer several of my own as well.

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 – so you can use a box stock parent theme like Storefront without having to extend it.

All you need to fully customize a WooCommerce site are Code Snippets, settings, CSS modifications inside the Customizer and well chosen plugins.

My presentation will also discuss popular DevOps topics using Git to version control a custom theme, child theme, plugins, all files, or potentially even the database contents.

While it’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.

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.

Share this:

Note: I may receive compensation for referrals.

WP Engine - A smarter way to WordPress
The best email marketing tool, responsive templates, automations, Worldwide support, tracking and reports, Benchmark Email, free plan available
Sell everywhere. Use Shopify to sell in-store and online.
Klaviyo partner badge
Okendo Partner, certified
WooCommerce, the most customizable eCommerce platform for building your online business. Click to get started.
Jetpack, a stronger, customizable site without sacrificing safety. Click to get started.