Skip to content

Instantly share code, notes, and snippets.

@actualityextensions
Last active April 23, 2020 10:34
Show Gist options
  • Save actualityextensions/57b5e391c8734e18d1e540990e4ccc56 to your computer and use it in GitHub Desktop.
Save actualityextensions/57b5e391c8734e18d1e540990e4ccc56 to your computer and use it in GitHub Desktop.
Support to pass through information to POS receipt header
<?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;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment