Adding the action to the Pay for Order shortcode

This commit is contained in:
Radoslav Georgiev 2022-05-17 20:24:24 +03:00
parent 58eaa73d39
commit 3cb59ebc8f
1 changed files with 8 additions and 0 deletions

View File

@ -183,6 +183,14 @@ class WC_Shortcode_Checkout {
current( $available_gateways )->set_current();
}
/**
* Triggered right before the Pay for Order form, after validation of the order and customer.
*
* @param WC_Order $order The order that is being paid for.
* @param string $order_button_text The text for the submit button.
*/
do_action( 'before_woocommerce_pay_form', $order, $order_button_text );
wc_get_template(
'checkout/form-pay.php',
array(