Created
November 28, 2019 23:20
-
-
Save MarkKevin08/2d113f31a8d4b9453e0eb8d7f5ebc888 to your computer and use it in GitHub Desktop.
"Sold Individual" default
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
function default_no_quantities( $individually, $product ){ | |
$individually = true; | |
return $individually; | |
} | |
add_filter( 'woocommerce_is_sold_individually', 'default_no_quantities', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment