Filter
rpress_checkout_button_next
On this page
Filters the markup of the Next button on the payment mode step.
Runs at the end of rpress_checkout_button_next() with the buffered HTML of the hidden fields and submit input. The result is passed through wp_kses() when printed, so only allowed input attributes are kept.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$html | string | Markup of the Next button and its hidden fields. |
Return value#
string. The button markup.
Example#
function my_checkout_button_next( $html ) {
return str_replace( 'rpress-submit', 'rpress-submit my-next-button', $html );
}
add_filter( 'rpress_checkout_button_next', 'my_checkout_button_next', 10, 1 );
Notes#
The parameter is the buffered output of the function.
Source#
Applied in:
includes/checkout/template.php(line 1120), inrpress_checkout_button_next()
Was this page helpful?
