Filter to customize the set of data that is used to render the receipt. The formatted line items aren't included, use the woocommerce_printable_order_receipt_formatted_line_item filter to customize those. See the value returned by the 'get_order_data' and 'get_woo_pay_data' methods for a reference of the structure of the data. See the template file, Templates/order-receipt.php, for reference on how the data is used.
$this->get_order_data( $order
Sortie :
@param array $data The original set of data. @param WC_Abstract_Order $order The order for which the receipt is being generated. @returns array The updated set of data.
// Modifier la valeur avec le filtre 'woocommerce_printable_order_receipt_data'
add_filter('woocommerce_printable_order_receipt_data', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($this->get_order_data( $order) {
// Modifier la valeur
return $this->get_order_data( $order;
}
Chargement des actualités...