Hi. How can we help?

Delivery date - How to remove carrier and shipping information from emails

If you want  remove carrier and shipping information from emails you can the following code in functions.php of you theme:

if (!function_exists('ywcdd_hide_carrier_and_shipping_information')) {
add_filter('yith_delivery_date_email_fields', 'ywcdd_hide_carrier_and_shipping_information', 10, 1);

/**
* @param array $fields
*
* @return array
**/
function ywcdd_hide_carrier_and_shipping_information($fields)
{

if (isset($fields['carrier'])) {
unset($fields['carrier']);
}

if (isset($fields['shipping_date'])) {
unset($fields['shipping_date']);
}

return $fields;
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center >