WordPress filter hook

woocommerce_subscriptions_cart_has_next_shipment

Fired by 3 WordPress plugins, running on 51K+ sites between them.

How to use woocommerce_subscriptions_cart_has_next_shipment

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_subscriptions_cart_has_next_shipment', function( $next_payment_date, $recurring_cart ) {
	// Change $next_payment_date here.
	return $next_payment_date;
}, 10, 2 );

Argument names come from FunnelKit's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

3 plugins that fire woocommerce_subscriptions_cart_has_next_shipment

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_subscriptions_cart_has_next_shipment', 0 !== $recurring_cart->next_payment_date, $recurring_cart ) modules/checkouts/public/template-common/checkout/wcs_cart_totals_shipping_calculator_html.php:22
  2. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_subscriptions_cart_has_next_shipment', 0 !== $recurring_cart->next_payment_date, $recurring_cart ) inc/compat/plugins/compat-plugin-woocommerce-subscriptions.php:473
  3. Novalnet Payment Gateway for WooCommerce icon Novalnet Payment Gateway for WooCommerce1,000+ installs apply_filters( 'woocommerce_subscriptions_cart_has_next_shipment', 0 !== $recurring_cart->next_payment_date, $recurring_cart ) class-wc-novalnet.php:749

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.