Skip to content

Instantly share code, notes, and snippets.

@bekarice
Created June 20, 2016 03:01
Show Gist options
  • Save bekarice/90e2a1b84825c03df0a96eba00e58e0d to your computer and use it in GitHub Desktop.
Save bekarice/90e2a1b84825c03df0a96eba00e58e0d to your computer and use it in GitHub Desktop.
<?php // only copy if needed
/**
* Modifies the delivery estimate label; $label = "day" / "days"
*
* @param string $label the label for the day estimate
* @param int $days number of dates for the estimate
* @return string - updated label
*/
function sv_wc_shipping_estimate_modify_label( $label, $days ) {
// Uncomment the version you want to use by removing the slashes before it
// return $label . ' (Excluding Sundays)';
// return 'business ' . $label;
}
add_filter( 'wc_shipping_estimate_label', 'sv_wc_shipping_estimate_modify_label', 100, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment