Code Snippets

Just Say the Word, We Can Do it all!

When working on client projects, I come to use certain code snippets over and over again. This page serves as a reminder for myself and the WP Mastery team – as well as an open source of inspiration for other developers.

By no means are those code snippets special, but they can be useful in the right circumstances and might save someone time in researching.

Those links go to Github Gist files and most often, you can copy and paste the code directly into your child theme’s function.php file.

If you have an idea for a better structure, please share it with me.

WooCommerce Code Snippets

Genesis Code Snippets

Bash Code Snippets & Automation Snippets

WP Mastery

Receive weekly curated content for WP Agencies & Developers.

Scale Your WordPress Agency Without Drowning in Projects.


Download your free Continuous Integration guide

5 reasons you should use automated deployments