Skip to content

Instantly share code, notes, and snippets.

@zorem
Created January 12, 2022 07:17
Show Gist options
  • Save zorem/43fda326dcef28449eac2d8f99400b8b to your computer and use it in GitHub Desktop.
Save zorem/43fda326dcef28449eac2d8f99400b8b to your computer and use it in GitHub Desktop.
Remove est delivery date from shipment status email and tracking page widget
/*
* 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