JavaScript
0
Вклад в тег
add_filter( 'woocommerce_order_button_html', 'custom_order_button_html');
function custom_order_button_html( $button ) {
//Ваши изменения с кнопкой
$button = '<input type="submit" class="g-recaptcha button alt" data-sitekey="свой ключ" data-callback="onSubmit" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />';
return $button;
}