Filter
rpress_receipt_guest_error_message
On this page
Filters the error message shown when a guest's purchase session has expired.
Shown by the receipt shortcode when there is no purchase session, the visitor is logged out and cannot view the receipt. The message is printed without further escaping.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$message | string | Error message. |
Return value#
string. The error message.
Example#
function my_receipt_guest_error( $message ) {
return esc_html__( 'Your session has expired. Please check your order confirmation email.', 'my-textdomain' );
}
add_filter( 'rpress_receipt_guest_error_message', 'my_receipt_guest_error' );
Source#
Applied in:
includes/class-rpress-shortcodes.php(line 172), inRP_Shortcodes::rpress_receipt()
See also#
Was this page helpful?
