WC_Email_Customer_POS_Refunded_Order::add_to_preferred_template_ids
Prepend this template to the preferred template IDs for POS-paid orders.
Method of the class: WC_Email_Customer_POS_Refunded_Order{}
No Hooks.
Returns
Array. Modified array of template IDs.
Usage
$WC_Email_Customer_POS_Refunded_Order = new WC_Email_Customer_POS_Refunded_Order(); $WC_Email_Customer_POS_Refunded_Order->add_to_preferred_template_ids( $preferred_template_ids, $order );
- $preferred_template_ids(array) (required)
- Ordered array of template IDs.
- $order(WC_Order) (required)
- The order.
Changelog
| Since 10.7.0 | Introduced. |
WC_Email_Customer_POS_Refunded_Order::add_to_preferred_template_ids() WC Email Customer POS Refunded Order::add to preferred template ids code WC 10.8.1
public function add_to_preferred_template_ids( $preferred_template_ids, $order ) {
if ( ! $this->is_preferred_for_order( $order ) ) {
return $preferred_template_ids;
}
array_unshift( $preferred_template_ids, $this->id );
return $preferred_template_ids;
}