1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
namespace AutomateWoo;
defined( 'ABSPATH' ) || exit;
/** * @class Variable_Order_Shipping_Provider */ class Variable_Order_Shipping_Provider extends Variable {
/** * Load admin details. */ public function load_admin_details() { $this->description = sprintf( /* translators: %1$s shipping tracking link start, %2$s shipping tracking link end. */ __( 'Displays the name of shipping provider as set with the %1$sWooCommerce Shipment Tracking%2$s extension.', 'automatewoo' ), '<a href="https://woocommerce.com/products/shipment-tracking/" target="_blank">', '</a>' ); }
/** * Get variable value. * * @param \WC_Order $order * * @return string */ public function get_value( $order ) { return Shipment_Tracking_Integration::get_shipment_tracking_field( $order, 'formatted_tracking_provider' ); } }
|