daily pastebin goal
78%
SHARE
TWEET

WooCommerce - Set default product type

lorro Jan 8th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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_product_type' );
  5.   function custom_product_type() {
  6.     return "variable";
  7.   }
RAW Paste Data
Top