automatewoo/includes/Variables/Refund_Reason.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

33 lines
559 B
PHP

<?php
namespace AutomateWoo;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* @class Variable_Refund_Reason
*
* @since 5.6.2
*/
class Variable_Refund_Reason extends Variable {
/**
* Load Admin Details.
*/
public function load_admin_details() {
$this->description = __( 'Displays the refund reason.', 'automatewoo' );
}
/**
* Get Value Method.
*
* @param \WC_Order_Refund $refund
* @param array $parameters
*
* @return string
*/
public function get_value( $refund, $parameters ) {
return $refund->get_reason();
}
}