Skip to content

Instantly share code, notes, and snippets.

View actualityextensions's full-sized avatar

Actuality Extensions actualityextensions

View GitHub Profile
@actualityextensions
actualityextensions / wc-point-of-sale-receipt-header.php
Last active April 23, 2020 10:34
Support to pass through information to POS receipt header
View wc-point-of-sale-receipt-header.php
<?php
// Support to pass through information to POS receipt header
add_filter( 'wc_pos_receipt_header_text', 'change_pos_receipt_header_text', 10, 3 );
function change_pos_receipt_header_text( $header_text, $order, $register ) {
$header_text = 'This is an updated header text.';
return $header_text;
}
@actualityextensions
actualityextensions / wc-point-of-sale-receipt-footer.php
Last active April 23, 2020 10:34
Support to pass through information to POS receipt footer
View wc-point-of-sale-receipt-footer.php