Created
September 27, 2021 04:14
-
-
Save digitalchild/f8567d4f277248ee15421f284bb06463 to your computer and use it in GitHub Desktop.
Remove fixed product discounts from the vendor coupon edit screen for WC Vendors Pro dashboard
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 | |
/** | |
* Remove fixed product discounts from the vendor coupon edit screen | |
*/ | |
add_filter( 'wcv_coupon_discount_type', 'wcv_use_percentage_discount_type' ); | |
function wcv_use_percentage_discount_type( $select_args ){ | |
unset( $select_args['options']['fixed_product']); | |
return $select_args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment