Created
March 6, 2026 14:48
-
-
Save xlplugins/6c14796ba822488f00bca97b2325c906 to your computer and use it in GitHub Desktop.
Show strike-through price for subscription product in fkcart
This file contains hidden or 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
| /** | |
| * Snippet: Show strike-through price and "Save X%" for subscription products in Cart for WooCommerce | |
| * Add to theme functions.php or Code Snippets. | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| add_filter( 'fkcart_disable_strike_price_product_type', function ( $excluded_types ) { | |
| return array_diff( $excluded_types, [ 'subscription', 'variable-subscription', 'subscription_variation' ] ); | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment