WC_Email_Customer_POS_Refunded_Order::remove_pos_customizations │ private │ WC 1.0

Remove actions and filters after generating email content.

Метод класса: WC_Email_Customer_POS_Refunded_Order{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->remove_pos_customizations();

Код WC_Email_Customer_POS_Refunded_Order::remove_pos_customizations() WC 11.3.0

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 );
}