WC_Order::get_address_prop PHP Method

get_address_prop() protected method

Gets a prop for a getter method.
Since: 2.7.0
protected get_address_prop ( string $prop, string $address = 'billing', string $context = 'view' ) : mixed
$prop string Name of prop to get.
$address string billing or shipping.
$context string What the value is for. Valid values are view and edit.
return mixed
    protected function get_address_prop($prop, $address = 'billing', $context = 'view')
    {
        $value = null;
        if (array_key_exists($prop, $this->data[$address])) {
            $value = isset($this->changes[$address][$prop]) ? $this->changes[$address][$prop] : $this->data[$address][$prop];
            if ('view' === $context) {
                $value = apply_filters($this->get_hook_prefix() . $address . '_' . $prop, $value, $this);
            }
        }
        return $value;
    }
WC_Order