WC_Email_Customer_POS_Refunded_Order::enable_order_email_actions
Enable order email actions for POS refunded orders.
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->enable_order_email_actions(): void;
WC_Email_Customer_POS_Refunded_Order::enable_order_email_actions() WC Email Customer POS Refunded Order::enable order email actions code WC 10.8.1
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 );
}