Merge pull request #21442 from danielbitzer/master

Add coupon object param to get coupon data filter
This commit is contained in:
Mike Jolley 2019-01-07 12:53:04 +00:00 committed by GitHub
commit 241cf4dece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class WC_Coupon extends WC_Legacy_Coupon {
}
// This filter allows custom coupon objects to be created on the fly.
$coupon = apply_filters( 'woocommerce_get_shop_coupon_data', false, $data );
$coupon = apply_filters( 'woocommerce_get_shop_coupon_data', false, $data, $this );
if ( $coupon ) {
$this->read_manual_coupon( $data, $coupon );