A few of our WordPress theme demos started to run slowly. Time to fire up newrelic to find out the problem. It quickly stood out that WordPress SQL queries are chewing up most of the time: What did I find in these demo database tables? 18000 WooCommerce “wc_session” entries. All of these wc_session entries had “autoload” set to “no”. […]
Tag: woocommerce
Creating a WordPress theme installation wizard / theme onboarding
When the popular WooCommerce plugin is first installed, the end user is presented with a lovely onboarding wizard helping with initial setup and showing links to further resources. I have adapted this to a WordPress theme, here’s the video showing the installation wizard after theme activation: This wizard will help with the following items: Default plugin installation and […]
Set default WooCommerce colors
Here’s a handy bit of PHP code to put into your ‘after_setup_theme’ WordPress hook to set the default WooCommerce colors on theme setup.