Filter
rpress_checkout_button_purchase
On this page
Filters the markup of the Place Order button.
Runs at the end of rpress_checkout_button_purchase() with the buffered submit input. The result is printed by rpress_checkout_submit() through wp_kses(), so only allowed attributes are kept.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$html | string | Markup of the purchase button. |
Return value#
string. The button markup.
Example#
function my_checkout_button_purchase( $html ) {
return str_replace( 'rpress-submit', 'rpress-submit my-place-order', $html );
}
add_filter( 'rpress_checkout_button_purchase', 'my_checkout_button_purchase', 10, 1 );
Notes#
The parameter is the buffered output of the function.
Source#
Applied in:
includes/checkout/template.php(line 1134), inrpress_checkout_button_purchase()
See also#
Was this page helpful?
