WC_Email_Customer_Partially_Refunded_Order::__constructpublicWC 1.0

Constructor.

Method of the class: WC_Email_Customer_Partially_Refunded_Order{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Email_Customer_Partially_Refunded_Order = new WC_Email_Customer_Partially_Refunded_Order();
$WC_Email_Customer_Partially_Refunded_Order->__construct();

WC_Email_Customer_Partially_Refunded_Order::__construct() code WC 10.8.1

public function __construct() {
	parent::__construct();

	$this->id             = 'customer_partially_refunded_order';
	$this->title          = __( 'Partially refunded order', 'woocommerce' );
	$this->description    = __( 'Notifies customers when their order has been partially refunded.', 'woocommerce' );
	$this->partial_refund = true;
	$this->template_block = 'emails/block/customer-partially-refunded-order.php';

	// Remove triggers for this email because they will be handled by the parent class.
	remove_action( 'woocommerce_order_fully_refunded_notification', array( $this, 'trigger_full' ), 10 );
	remove_action( 'woocommerce_order_partially_refunded_notification', array( $this, 'trigger_partial' ), 10 );
}