Filter
rpress_receipt_payment_address_text
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#
| Parameter | Type | Description |
|---|---|---|
$text | string | Label 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), inRPRESS_Print_Receipts::rp_print_payment_data()
See also#
Was this page helpful?
