Created
April 1, 2020 08:02
-
-
Save plugin-republic/5d30715ee5f8365bd35f677417ed0598 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Multiply child product quantities by the product quantity | |
*/ | |
function prefix_multiply_child_product_quantities( $multiply, $cart_item ) { | |
return true; | |
} | |
add_filter( 'pewc_multiply_child_product_quantities', 'prefix_multiply_child_product_quantities', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment