Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jan 11, 2023
1 parent 91242fb commit dac6318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Feature/WooCommerce/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ public function blacklist_coupons( $enabled, $query ) {
return $enabled;
}

if ( empty( $query->query_vars['ep_integrate'] ) ) {
if ( 'shop_coupon' === $query->get( 'post_type' ) && empty( $query->query_vars['ep_integrate'] ) ) {
return false;
}

Expand Down

0 comments on commit dac6318

Please sign in to comment.