WC_Email_Customer_POS_Completed_Order::add_pos_customizationsprivateWC 1.0

Add actions and filters before generating email content.

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

Хуков нет.

Возвращает

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

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

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

Код WC_Email_Customer_POS_Completed_Order::add_pos_customizations() WC 10.0.2

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