'[items-subtotal]'); public $display_name = 'Items subtotal'; public function getValue($post, $field) { if ('shop_order' === $post->post_type || 'shop_order_placehold' === $post->post_type) { $order = $this->getOrder($post); } return !empty($order) ? $this->getValueWithCurrency($order->get_subtotal()) : ''; } }