WC_Email_Customer_POS_Refunded_Order::remove_pos_customizationsprivateWC 1.0

Remove actions and filters after 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->remove_pos_customizations();

WC_Email_Customer_POS_Refunded_Order::remove_pos_customizations() code WC 10.8.1

private function remove_pos_customizations() {
	// Remove actions and filters after generating content to avoid affecting other emails.
	remove_action( 'woocommerce_order_item_meta_start', array( $this, 'add_unit_price' ), 10 );
	remove_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 10 );
	remove_filter( 'woocommerce_email_footer_text', array( $this, 'replace_footer_placeholders' ), 1 );
}