Created
June 20, 2016 03:01
-
-
Save bekarice/90e2a1b84825c03df0a96eba00e58e0d to your computer and use it in GitHub Desktop.
This file contains 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 // 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