Created
August 23, 2018 03:02
-
-
Save fervous/f6ab72de8dd11059e6924ce2fb26961d to your computer and use it in GitHub Desktop.
wc vendors pro default product type auction simple auction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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