WC_Order::get_total_shipping_refunded
Get the total shipping refunded.
Метод класса: WC_Order{}
Хуков нет.
Возвращает
float.
Использование
$WC_Order = new WC_Order(); $WC_Order->get_total_shipping_refunded();
Список изменений
| С версии 2.4 | Введена. |
Код WC_Order::get_total_shipping_refunded() WC Order::get total shipping refunded WC 10.4.3
public function get_total_shipping_refunded() {
$cache_key = WC_Cache_Helper::get_cache_prefix( 'orders' ) . 'total_shipping_refunded' . $this->get_id();
$cached_data = wp_cache_get( $cache_key, $this->cache_group );
if ( false !== $cached_data ) {
return $cached_data;
}
$total_refunded = $this->data_store->get_total_shipping_refunded( $this );
wp_cache_set( $cache_key, $total_refunded, $this->cache_group );
return $total_refunded;
}