Need a unique gift idea?
A Pastebin account makes a great Christmas gift

WooCommerce - Set default product type

lorro Feb 13th, 2017 75 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2.   // WooCommerce - Set default product type
  3.   // code goes in functions.php for your child theme
  4.   add_action( 'default_product_type', 'custom_default_product_type' );
  5.   function custom_default_product_type() {
  6.     return 'variable';
  7.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand