WC_Email_Customer_POS_Refunded_Order::enable_order_email_actions │ private │ WC 1.0

Enable order email actions for POS refunded orders.

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

Хуков нет.

Возвращает

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

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

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

Код WC_Email_Customer_POS_Refunded_Order::enable_order_email_actions() WC 11.3.0

private function enable_order_email_actions(): void {
	add_action( 'woocommerce_order_fully_refunded_notification', array( $this, 'auto_trigger' ), 10, 2 );
	add_action( 'woocommerce_order_partially_refunded_notification', array( $this, 'auto_trigger' ), 10, 2 );
	add_filter( 'woocommerce_rest_order_actions_email_valid_template_classes', array( $this, 'add_to_valid_template_classes' ), 10, 2 );
	add_filter( 'woocommerce_rest_order_actions_email_preferred_template_ids', array( $this, 'add_to_preferred_template_ids' ), 10, 2 );
	add_action( 'woocommerce_rest_order_actions_email_send', array( $this, 'trigger' ), 10, 2 );
}