Trigger action to add additional fields before the add payment method save button

This commit is contained in:
Thomas Steur 2020-05-11 13:09:39 +12:00 committed by GitHub
parent e10702625c
commit 19b074f46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ if ( $available_gateways ) : ?>
?>
</ul>
<?php do_action( 'woocommerce_add_payment_method_before_save' ); ?>
<div class="form-row">
<?php wp_nonce_field( 'woocommerce-add-payment-method', 'woocommerce-add-payment-method-nonce' ); ?>
<button type="submit" class="woocommerce-Button woocommerce-Button--alt button alt" id="place_order" value="<?php esc_attr_e( 'Add payment method', 'woocommerce' ); ?>"><?php esc_html_e( 'Add payment method', 'woocommerce' ); ?></button>