Created
January 12, 2022 07:17
-
-
Save zorem/43fda326dcef28449eac2d8f99400b8b to your computer and use it in GitHub Desktop.
Remove est delivery date from shipment status email and tracking page widget
This file contains hidden or 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
/* | |
* Remove est delivery date from shipment status email and tracking page widget | |
*/ | |
add_filter( 'show_est_delivery_date', 'est_delivery_date_in_email', 10, 2 ); | |
function est_delivery_date_in_email( $bool, $provider ) { | |
if ( 'USPS' == $provider ) { | |
$bool = false; | |
} | |
return $bool; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment