Skip to content
Docs
Get RestroPress

Filter

rpress_receipt_payment_note_text

Updated
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#

ParameterTypeDescription
$textstringLabel 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), in RPRESS_Print_Receipts::rp_print_payment_data()

See also#

Was this page helpful?