Skip to content

Instantly share code, notes, and snippets.

@spencerfinnell
Created July 30, 2018 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencerfinnell/ab4d15db512988ae95d29d52617fbf8b to your computer and use it in GitHub Desktop.
Save spencerfinnell/ab4d15db512988ae95d29d52617fbf8b to your computer and use it in GitHub Desktop.
<?php
/**
* Change the label of the combined shipping.
*/
add_filter( 'wc_combined_shipping_free_shipping_label', function( $text, $last_order_id, $last_order_date ) {
return sprintf( 'Free shipping when combined with order #%s', $last_order_id );
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment