Created
November 9, 2018 05:04
-
-
Save NickGreen/326061e6c015c74ca7232645a24364ec to your computer and use it in GitHub Desktop.
Don't display the recurring totals in cart or checkout
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
<?php | |
/* | |
Plugin Name: WooCommerce Subscriptions - Remove Recurring Totals | |
Plugin URI: | |
Description: Don't display the recurring totals in cart or checkout | |
Version: 1.0 | |
Author: Support | |
Author URI: | |
*/ | |
function dont_display_recurring_totals() { | |
remove_action( 'woocommerce_cart_totals_after_order_total', 'WC_Subscriptions_Cart::display_recurring_totals' ); | |
remove_action( 'woocommerce_review_order_after_order_total', 'WC_Subscriptions_Cart::display_recurring_totals' ); | |
} | |
add_action('wp_head', 'dont_display_recurring_totals'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment