Skip to content
Docs
Get RestroPress

Filter

rp_confirm_order_text

Updated
On this page

Filters the label of the sidebar cart checkout button.

Runs in the sidebar cart totals template. The default is the translated string "Checkout". The value is printed with esc_html().

Parameters#

ParameterTypeDescription
$textstringThe button label.

Return value#

string. The button label.

Example#

function my_confirm_order_text( $text ) {
	return __( 'Place order', 'my-textdomain' );
}
add_filter( 'rp_confirm_order_text', 'my_confirm_order_text' );

Source#

Applied in:

  • templates/cart/checkout.php (line 82)

See also#

Was this page helpful?