Skip to content

Instantly share code, notes, and snippets.

@fervous
Created August 23, 2018 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/f6ab72de8dd11059e6924ce2fb26961d to your computer and use it in GitHub Desktop.
Save fervous/f6ab72de8dd11059e6924ce2fb26961d to your computer and use it in GitHub Desktop.
wc vendors pro default product type auction simple auction
/* WC Vendors Pro - changes default product type to Auction (simple auction plugin needed).
To be placed in the child theme functions.php */
add_filter( 'wcv_default_product_type', 'wcv_default_product_type_auction' );
function wcv_default_product_type_auction($product_type) {
$product_type = 'auction';
return $product_type;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment