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
|
<?php
namespace AutomateWoo;
if ( ! defined( 'ABSPATH' ) ) { exit; }
/** * @class Variable_Order_Status */ class Variable_Order_Status extends Variable {
/** * Load the admin details for this variable */ public function load_admin_details() { $this->description = __( 'Displays the status of the order.', 'automatewoo' ); }
/** * Get the Order Status Name * * @param \WC_Order $order The Order to get the status * * @return string The Order Status Name */ public function get_value( $order ) { return wc_get_order_status_name( $order->get_status() ); } }
|