WC_Email_Customer_POS_Refunded_Order::add_pos_customizationsprivateWC 1.0

Add actions and filters before generating email content.

Method of the class: WC_Email_Customer_POS_Refunded_Order{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->add_pos_customizations();

WC_Email_Customer_POS_Refunded_Order::add_pos_customizations() code WC 10.7.0

private function add_pos_customizations() {
	// Add action to display unit price in the beginning of the order item meta.
	add_action( 'woocommerce_order_item_meta_start', array( $this, 'add_unit_price' ), 10, 4 );
	// Add filter to include additional details in the order item totals table.
	add_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 10, 3 );
	// Add filter for custom footer text with highest priority to run before the default footer text filtering in `WC_Emails`.
	add_filter( 'woocommerce_email_footer_text', array( $this, 'replace_footer_placeholders' ), 1, 2 );
}