WooCommerce: Should I Add Custom Code Via WP Editor, FTP or “Code Snippets”?

There are many ways to customize the functionalities of your WooCommerce website, and Business Bloomer is the living proof, with hundreds of WooCommerce snippets!

However, many developers totally underestimate the pros and cons of each different method for adding custom code to a WordPress website. Someone is familiar with the WordPress editor, others tend to install “Code Snippets” plugins to make things easier for them and the website owner (on paper), others exclusively use FTP / SFTP or more advanced methods.

So, today I want to remind you what is the ONLY way you should be customizing WordPress from now on.

Before we pick a customization method…

There is no doubt if you’re about to customize a WordPress website, and even more importantly a WooCommerce website, you need a child theme.

Building a child theme can take about 10 minutes – you only need to create 2 files with a few lines of CSS (style.css) and PHP (functions.php).

Here’s a quick and free video lesson for you: “Where to Place WooCommerce Customization?

PHP Customization Method 1: WP Editor

WordPress contains a built-in editor that allows you to edit theme files directly from your browser. You can access the WP Editor from the WordPress Dashboard > Appearance > Theme File Editor (unless you have a security plugin such as WordFence, which disables that for obvious reasons).

Even if you have a child theme, using the WP Editor for PHP customization is not a good idea. In fact, the changes you make to the functions.php file are instant and permanent – you can’t just hit the “back” button to go back to the previous version in case you’ve messed up with code.

You can’t even create new files or folders, move them, delete them. You can’t upload or download them. Ypu’re basically only able to edit a file at a time.

You can’t search and replace, and do usual dev operations with it.

On the other hand, no need to worry if you forget a simple comma – your WordPress site won’t break (Error 500) and you will be returned with an error message describing the error.

Either way, I recommend not to use the WP Editor for PHP customization.

PHP Customization Method 2: FTP

FTP is the best way to customize your WordPress/WooCommerce website.

You can open the files in your favorite text editor (I use Visual Code Editor), do the edits there, save a backup and if you break something you can immediately correct / rename / comment out the PHP function or entire file.

Whenever you do work on live websites (like I do), always make sure to ask for the WP login/password as well as the FTP credentials. And remind the client you will not start working until you get the FTP details!

PHP Customization Method 3: “Code Snippets” Plugin

The Code Snippets plugin is super handy when you don’t have a child theme (why would you not have one though?) or when you want to test / run just a couple of PHP snippets.

It’s interface is awesome and easy to use, including the enabling/disabling snippets and your website will not go down if you forget a comma… the plugin will tell you what the problem is and disable the snippet without breaking the website.

The problem is that you won’t be able to find the snippets via FTP or File Manager, as the plugin stores them in the WordPress database. If your website goes down for other problems (a plugin conflict for example), it’s super difficult to disable a code snippet from outside of WordPress – you need to login to your database, find the code snippets table, drop a row and hope that you didn’t mess with anything else. Playing with the database is something you should never do.


If you want to become a serious advanced WooCommerce developer, you need to become super familiar with child themes and FTP software.

Related content

  • WooCommerce AMA with Rodolfo Melogli (Ask Me Anything Woo #1)
    I am Rodolfo Melogli, founder of Business Bloomer, WooCommerce development expert, WordPress freelancer, WordCamp speaker, content marketing geek and (like you) small business owner. This is the first ever WooCommerce AMA (Ask Me Anything) session on Business Bloomer. Rodolfo Melogli will be donating 72 hours of his time and will be available to answer your […]
  • CustomizeWoo: a WooCommerce Online Course for Aspiring Developers
    It’s live. And it’s alive and kicking. #CustomizeWoo, my flagship Advanced WooCommerce Online Course for designers and DIY store owners, is now live. In this post, I’m about to show you why I invested 151hrs 39mins 1secs of my time to build #CustomizeWoo and another 50+ hours to publish the updated version in June 2019, […]
  • WooCommerce: How to Calculate Product Prices with Custom Formulas
    WooCommerce is a powerful and feature-rich WordPress plugin. But despite the fact it’s got many features, there is always something missing for custom ecommerce businesses. The problem with “all-you-can-do plugins” is the same as “all-in-one WordPress themes“: the more custom functionalities a piece of software has, the worse its performance gets. Therefore, there is no […]
  • WooCommerce: How To Become an Advanced Developer?
    Well, get ready for a 2,700+ words article: becoming a WooCommerce expert won’t take you just a couple of days. A few months won’t be enough either. If you want to join that very small group of advanced freelancers and agencies that exclusively work with WooCommerce clients and charge top dollar, if you want to […]
  • WooCommerce: How To Sell Restaurant Food Online
    The COVID-19 pandemic has made millions of restaurants around the globe shut their doors and adapt to a different and much more convenient way of doing business – accelerating the online restaurant ordering system.  Several third-party services like Uber Eats and Grubhub can help you get your restaurant menu online and take online food orders. […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

6 thoughts on “WooCommerce: Should I Add Custom Code Via WP Editor, FTP or “Code Snippets”?

  1. Genial y excelente lección “Where to Place Customization” 🙂

  2. Hi Rodolfo – if you would like to use the codes snippets plugin & it still breaks your site, you can always add this snippet to ‘wp-config.php’.

    define('CODE_SNIPPETS_SAFE_MODE', true);

    This activates the plugin’s safe mode, enabling you to change/remove the snippet that broke the site instantly.

    1. Awesome!

  3. Most useful Information for those who do php edits frequently !

    1. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *