form pay hooks before and after button Closes #9746

This commit is contained in:
Mike Jolley 2015-12-03 12:06:14 +00:00
parent 4cf699ed0a
commit dcef386d6c
1 changed files with 4 additions and 0 deletions

View File

@ -73,8 +73,12 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="form-row">
<input type="hidden" name="woocommerce_pay" value="1" />
<?php do_action( 'woocommerce_pay_order_before_submit' ); ?>
<?php echo apply_filters( 'woocommerce_pay_order_button_html', '<input type="submit" class="button alt" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' ); ?>
<?php do_action( 'woocommerce_pay_order_after_submit' ); ?>
<?php wc_get_template( 'checkout/terms.php' ); ?>
<?php wp_nonce_field( 'woocommerce-pay' ); ?>