Skip to content
Docs
Get RestroPress

Filter

rpress_get_failed_transaction_uri

Updated
On this page

Filters the URL of the failed transaction page.

Runs at the end of rpress_get_failed_transaction_uri(). The URL is the trailing-slashed permalink of the page set in the failure_page option, or the home URL when none is set, with optional extras appended.

Parameters#

ParameterTypeDescription
$uristringFailed transaction page URL.

Return value#

string. The failed transaction URL.

Example#

function my_failed_transaction_uri( $uri ) {
	return add_query_arg( 'from', 'checkout', $uri );
}
add_filter( 'rpress_get_failed_transaction_uri', 'my_failed_transaction_uri', 10, 1 );

Source#

Applied in:

  • includes/checkout/functions.php (line 182), in rpress_get_failed_transaction_uri()

See also#

Was this page helpful?