Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clifgriffin/b02594e5115800cdaa98eb1916e1d259 to your computer and use it in GitHub Desktop.
Save clifgriffin/b02594e5115800cdaa98eb1916e1d259 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'cfw_display_bump', function( $display_bump ) {
if ( ! class_exists( '\\WC_Subscriptions_Cart' ) ) {
return $display_bump;
}
if ( \WC_Subscriptions_Cart::cart_contains_subscription() ) {
return false;
}
return $display_bump;​
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment