Advertisement
majeedraza

WooCommerce - Set default product type

Feb 13th, 2017
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement