From f83396496925228aa75027c25ba56d9039e77592 Mon Sep 17 00:00:00 2001 From: Thomas Roberts Date: Wed, 17 Jul 2024 16:01:32 +0100 Subject: [PATCH] Add description and delivery time to $data --- .../includes/class-wc-shipping-rate.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/woocommerce/includes/class-wc-shipping-rate.php b/plugins/woocommerce/includes/class-wc-shipping-rate.php index a42893ef5a1..4e8f1b0a537 100644 --- a/plugins/woocommerce/includes/class-wc-shipping-rate.php +++ b/plugins/woocommerce/includes/class-wc-shipping-rate.php @@ -22,12 +22,14 @@ class WC_Shipping_Rate { * @var array */ protected $data = array( - 'id' => '', - 'method_id' => '', - 'instance_id' => 0, - 'label' => '', - 'cost' => 0, - 'taxes' => array(), + 'id' => '', + 'method_id' => '', + 'instance_id' => 0, + 'label' => '', + 'cost' => 0, + 'taxes' => array(), + 'description' => '', + 'delivery_time' => '', ); /**