Filter
rpress_order_details_show_guest_note
On this page
Filters whether the order details page tells a guest the order link was emailed.
The default is true when the order has no user ID, the visitor is not logged in and the order has an email address. The note says that a link to the page was emailed to that address. Changing this only shows or hides the note; it does not send any email.
Available since RestroPress 3.5.1.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$show | bool | Default decision. |
$payment_id | int | Order (payment) ID. |
Return value#
bool. Whether to show the note.
Example#
add_filter( 'rpress_order_details_show_guest_note', 'my_hide_guest_note', 10, 2 );
function my_hide_guest_note( $show, $payment_id ) {
if ( 'pickup' === rpress_get_payment_meta( $payment_id, '_rpress_delivery_type', true ) ) {
return false;
}
return $show;
}
Source#
Applied in:
includes/features/checkout-flow/functions.php(line 328), inrpress_order_details_show_guest_note()
Was this page helpful?
