Filter
rpress_receipt_payment_note_text
On this page
Filters the Instructions label in the printed receipt.
Applied while the printable receipt is built, and only when the order has an order note. The label precedes the note text. The text is inserted into the HTML unescaped.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$text | string | Label text, Instructions: by default. |
Return value#
string. The label text.
Example#
function my_receipt_note_text( $text ) {
return __( 'Customer note: ', 'my-textdomain' );
}
add_filter( 'rpress_receipt_payment_note_text', 'my_receipt_note_text' );
Source#
Applied in:
includes/class-rpress-print-receipts.php(line 239), inRPRESS_Print_Receipts::rp_print_payment_data()
See also#
Was this page helpful?
