Skip to content

Instantly share code, notes, and snippets.

@NickGreen
Created November 9, 2018 05:04
Show Gist options
  • Save NickGreen/326061e6c015c74ca7232645a24364ec to your computer and use it in GitHub Desktop.
Save NickGreen/326061e6c015c74ca7232645a24364ec to your computer and use it in GitHub Desktop.
Don't display the recurring totals in cart or checkout
<?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