rename
This commit is contained in:
@@ -151,17 +151,17 @@ class Wiaas_Order {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function get_global_estimated_date($order_id){
|
||||
public static function get_order_estimated_date($order_id){
|
||||
$order = wc_get_order($order_id);
|
||||
if (!$order){
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return $order->get_meta('_wiaas_global_estimated_delivery_date') ?: NULL;
|
||||
return $order->get_meta('_wiaas_order_estimated_delivery_date') ?: NULL;
|
||||
}
|
||||
|
||||
public static function save_global_estimated_date($order_id, $date){
|
||||
return update_post_meta($order_id, '_wiaas_global_estimated_delivery_date', $date);
|
||||
public static function save_order_estimated_date($order_id, $date){
|
||||
return update_post_meta($order_id, '_wiaas_order_estimated_delivery_date', $date);
|
||||
}
|
||||
|
||||
public static function get_final_estimated_date($order_id){
|
||||
|
||||
Reference in New Issue
Block a user