Skip to content
Docs
Get RestroPress

Filter

rpress_receipt_payment_address_text

Updated
On this page

Filters the Address label in the printed receipt.

Applied while the printable receipt is built, and only for delivery orders. The label precedes the comma separated delivery address. The text is inserted into the HTML unescaped.

Parameters#

ParameterTypeDescription
$textstringLabel text, Address: by default.

Return value#

string. The label text.

Example#

function my_receipt_address_text( $text ) {
	return __( 'Deliver to: ', 'my-textdomain' );
}
add_filter( 'rpress_receipt_payment_address_text', 'my_receipt_address_text' );

Source#

Applied in:

  • includes/class-rpress-print-receipts.php (line 217), in RPRESS_Print_Receipts::rp_print_payment_data()

See also#

Was this page helpful?