Skip to content
Docs
Get RestroPress

Filter

rpress_payment_confirm_{$payment_confirmation}

Updated
On this page

Filters the success page content for a given payment confirmation type.

Runs in rpress_filter_success_page_content() on the_content (priority 99999) when the request has a payment-confirmation query argument and the page is the success page. The dynamic part is the value of that argument, usually a gateway ID. Gateways use it to replace the success page content while a payment is confirmed.

Parameters#

ParameterTypeDescription
$contentstringThe page content before this filter.

Return value#

string. The content to display.

Example#

function my_payment_confirm_content( $content ) {
	return '<p>' . esc_html__( 'Confirming your payment...', 'my-textdomain' ) . '</p>' . $content;
}
add_filter( 'rpress_payment_confirm_mygateway', 'my_payment_confirm_content', 10, 1 );

Notes#

Applied only when a callback exists for the exact payment-confirmation value in the query string.

Source#

Applied in:

  • includes/checkout/template.php (line 1211), in rpress_filter_success_page_content()
Was this page helpful?